Hi, is there a way of making Cleave use integers only?
No delimiter or decimals
I came across with this
new Cleave('.int', {
numeral: true,
numeralDecimalMark: '',
delimiter: '',
});
But I'd like to know how to delimiter with just 2 character.
That is actually simple
new Cleave('.int', {
blocks: [2],
numericOnly: true,
});
In your case would be something like
new Cleave('.int', {
numeral: true,
numeralDecimalMark: '',
delimiter: '',
});
Yea, exactly, just as @tiagomatosweb posted, pass empty string to numeralDecimalMark and delimiter.
Will close this for now, thanks for playing with it.
Most helpful comment
Yea, exactly, just as @tiagomatosweb posted, pass empty string to
numeralDecimalMarkanddelimiter.Will close this for now, thanks for playing with it.