F
Filament12mo 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 Chaney12mo ago
@keyme0209 what version of filament? masking is done differently in v3. make sure you read the docs
KeyMe
KeyMe12mo ago
v3 yea
Mark Chaney
Mark Chaney12mo ago
you really need to look over the docs then and the upgrade instructions, etc
KeyMe
KeyMe12mo ago
alrighty
Mark Chaney
Mark Chaney12mo ago
some of that might help
Solution
KeyMe
KeyMe12mo 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
More Posts