F
Filament16mo ago
KeyMe

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 Chaney16mo ago
@keyme0209 what version of filament? masking is done differently in v3. make sure you read the docs
KeyMe
KeyMeOP16mo ago
v3 yea
Mark Chaney
Mark Chaney16mo ago
you really need to look over the docs then and the upgrade instructions, etc
KeyMe
KeyMeOP16mo ago
alrighty
Mark Chaney
Mark Chaney16mo ago
some of that might help
Solution
KeyMe
KeyMe16mo ago
sorted it out thanks ✅
->prefix('RM')
->mask(RawJs::make(<<<'JS'
$money($input, '.', ',')
JS))
->prefix('RM')
->mask(RawJs::make(<<<'JS'
$money($input, '.', ',')
JS))
Want results from more Discord servers?
Add your server