nosir / cleave.js

Format input text content when you are typing...
http://nosir.github.io/cleave.js
Apache License 2.0
17.95k stars 1.62k forks source link

Add new option 'numeralDecimalPadding'. #707

Open oxosi opened 1 year ago

oxosi commented 1 year ago

A Boolean value indicates padding decimals with zeros. Default value: false

new Cleave('.my-input', {
    numeral: true,
    numeralDecimalScale: 2,
    numeralDecimalPadding: true
});

// 1234.00