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

->mask(
        fn (TextInput\Mask $mask) => $mask
           ->money(prefix: 'RM', thousandsSeparator: ',', decimalPlaces: 2)
        )
Solution
sorted it out thanks ✅
->prefix('RM')
            ->mask(RawJs::make(<<<'JS'
                $money($input, '.', ',')
            JS))
Was this page helpful?