how to format numeric TextInput to be readable #15927
Unanswered
MasterAboLayan
asked this question in
Help
Replies: 1 comment
-
|
anybody can help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Form builder
Package Version
v3.3.5
How can we help you?
hi
I 'm working on filament3.3.5 I need to create TextInput Numeric component
public static function xTxtMoney(string $fieldName, string $label): Component { return TextInput::make($fieldName) ->numeric() ->label(__($label)) ->unique(ignoreRecord: true) ->markAsRequired() ->rule('required') ->prefixIcon('heroicon-m-pencil-square') ->mask(RawJs::make('$money($input)')) ->stripCharacters(','); }but I see that I can't write more than 2 decimal digits, I need it to be open to enter any decimal digits that user wants so it can accept:
1,155,478.484487932
or
0.00000045
or
0.45
can help me please
Beta Was this translation helpful? Give feedback.
All reactions