Textinput mask class doesn't exist. Other way to implement money masking?

->mask(
fn (TextInput\Mask $mask) => $mask
->money(prefix: 'RM', thousandsSeparator: ',', decimalPlaces: 2)
)
->mask(
fn (TextInput\Mask $mask) => $mask
->money(prefix: 'RM', thousandsSeparator: ',', decimalPlaces: 2)
)
Solution:
sorted it out thanks ✅ ```js ->prefix('RM') ->mask(RawJs::make(<<<'JS' $money($input, '.', ',')...
Jump to solution
8 Replies
Mark Chaney
Mark Chaney2y ago
@keyme0209 what version of filament? masking is done differently in v3. make sure you read the docs
KeyMe
KeyMeOP2y ago
v3 yea
Mark Chaney
Mark Chaney2y ago
you really need to look over the docs then and the upgrade instructions, etc
KeyMe
KeyMeOP2y ago
alrighty
Mark Chaney
Mark Chaney2y ago
some of that might help
Solution
KeyMe
KeyMe2y ago
sorted it out thanks ✅
->prefix('RM')
->mask(RawJs::make(<<<'JS'
$money($input, '.', ',')
JS))
->prefix('RM')
->mask(RawJs::make(<<<'JS'
$money($input, '.', ',')
JS))

Did you find this page helpful?