_kuding
_kuding
FFilament
Created by _kuding on 8/17/2023 in #❓┊help
Custom page Action with kebab-case doesn't activate
Custom page actions (not table actions, they work as expected) that have kebab-case name (Action::make('test-text')) won't trigger it's action on click. When it changed to Action::make('testText'), it works as expected.
public function testTextAction(): Action
{
return Action::make('test-text')
->requiresConfirmation()
->action(function () {
// action
});
}
public function testTextAction(): Action
{
return Action::make('test-text')
->requiresConfirmation()
->action(function () {
// action
});
}
{{ $this->testTextAction }}
{{ $this->testTextAction }}
3 replies
FFilament
Created by _kuding on 8/2/2023 in #❓┊help
TexInput money mask allow typing forbidden symbols
Mask applied only on blur and doesn't prevent you from typing letters. I guess, it has something to do with the wire:model not working properly with Alpine. It works properly when there's no property "balance" in Livewire\Component class to bind to. But then form validation doesn't work.
Forms\Components\TextInput::make('balance')
->numeric()
->mask(RawJs::make(<<<'JS'
$money($input, '.', '')
JS)),
Forms\Components\TextInput::make('balance')
->numeric()
->mask(RawJs::make(<<<'JS'
$money($input, '.', '')
JS)),
21 replies