WrkL
WrkL
FFilament
Created by WrkL on 6/27/2024 in #❓┊help
Repeater keybindings
Hi, is it possible to add keybinding on Reapeater "add action"?
5 replies
FFilament
Created by WrkL on 12/8/2023 in #❓┊help
Textfield with masking in Repeater
Hi, i have a masking field inside a repeater as below
Forms\Components\TextInput::make('quantity')
->mask(RawJs::make(<<<'JS'
$money($input)
JS))
Forms\Components\TextInput::make('quantity')
->mask(RawJs::make(<<<'JS'
$money($input)
JS))
it will format incorrectly when we add more item to the repeater, detail as attached video any suggestion on how to fix this ? thanks
3 replies
FFilament
Created by WrkL on 9/8/2023 in #❓┊help
Refresh form data on action
Hello, how can i refresh form data on action / update in a standalone form builder ? tried wire:click="$refresh" but it didnt work
8 replies
FFilament
Created by WrkL on 6/8/2023 in #❓┊help
How to properly access relation data in ViewField
6 replies
FFilament
Created by WrkL on 3/7/2023 in #❓┊help
How to properly hide / show headerAction dynamically ?
as shown in the video, the header action should be hidden on mount but it didnt and it also render three dots menu when the button is hidden. it work as intended when i replace the hidden method to be extraAttribute ( alpine x-show ) below is the code :
class Testing extends Component implements HasTable
{
use InteractsWithTable;

public $showHeaderActionsButton = false;

protected function getTableQuery(): Builder|Relation
{
return PromoHeader::query();
}

protected function getTableHeaderActions(): array
{
return [
Action::make('testing')
->label('Test')
->button()
->action(fn () => dd('hello'))
// ->extraAttributes([
// 'x-show' => '! $wire.showHeaderActionsButton'
// ])
->hidden($this->showHeaderActionsButton)
];
}

protected function getTableColumns(): array
{
return [
TextColumn::make('id'),
TextColumn::make('updated_at'),
];
}
}
class Testing extends Component implements HasTable
{
use InteractsWithTable;

public $showHeaderActionsButton = false;

protected function getTableQuery(): Builder|Relation
{
return PromoHeader::query();
}

protected function getTableHeaderActions(): array
{
return [
Action::make('testing')
->label('Test')
->button()
->action(fn () => dd('hello'))
// ->extraAttributes([
// 'x-show' => '! $wire.showHeaderActionsButton'
// ])
->hidden($this->showHeaderActionsButton)
];
}

protected function getTableColumns(): array
{
return [
TextColumn::make('id'),
TextColumn::make('updated_at'),
];
}
}
7 replies