Thousand separator and decimal separator
Is there any way in V3 to get the
thousandSeparator
and decimalSeparator
on a TextInput? Or is there a new way?8 Replies
Can you share the code for your TextInput?
V2 or V3?
V3. Just need to see what you’re actually trying to do.
Don't have any mask in V3 right now. Because not sure what to way is to achieve it in V3
V2 code was this:
Ahh. Ok. V3 uses the alpine mask so there is no class to call those methods on. https://filamentphp.com/docs/3.x/forms/fields/text-input#input-masking
Mask — Alpine.js
Automatically format text fields as users type
Yeah saw that. Just not sure how to make it with rawjs but will figure something out if that is the only way
Look at the alpine doc. You can probably achieve it with the $money directive even if it isn’t actually money.