_metadev
_metadev
FFilament
Created by _metadev on 8/7/2023 in #❓┊help
How to show livewire component as modal window for filament table action
I am going to show a livewire component in modal window when user clicks a filament table action.
protected function getTableActions()
{
return [
ActionGroup::make([
ViewAction::make()->form([
TextInput::make('name'),
TextInput::make('email'),
]),
DeleteAction::make(),
ForceDeleteAction::make(),
RestoreAction::make(),
Action::make('assign')
->icon('heroicon-o-trash')
])
];
}
protected function getTableActions()
{
return [
ActionGroup::make([
ViewAction::make()->form([
TextInput::make('name'),
TextInput::make('email'),
]),
DeleteAction::make(),
ForceDeleteAction::make(),
RestoreAction::make(),
Action::make('assign')
->icon('heroicon-o-trash')
])
];
}
When clicked assign button, I want to show a modal window and the use a livewire component as modal window content. I tried to find the solution and looked around filament table actin docs, but I couldn't find. Please help me to find what functions to call for making custom filament table action for showing a livewire component in modal window.
27 replies