F
Filament17mo ago
BATMAN

PatternBlock Error

i having an error in this part
use Filament\Forms\Components\TextInput;

TextInput::make('cost')->mask(fn (TextInput\Mask $mask) => $mask
->patternBlocks([
'money' => fn (Mask $mask) => $mask
->numeric()
->thousandsSeparator(',')
->decimalSeparator('.'),
])
->pattern('$money'),
)
use Filament\Forms\Components\TextInput;

TextInput::make('cost')->mask(fn (TextInput\Mask $mask) => $mask
->patternBlocks([
'money' => fn (Mask $mask) => $mask
->numeric()
->thousandsSeparator(',')
->decimalSeparator('.'),
])
->pattern('$money'),
)
from this https://filamentphp.com/docs/2.x/forms/fields#text-input is there supposed to be a ) after the $mask before the patternBlocks?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?