© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
David Vincent

TableHeaderActions

I have a simple TableHeaderActions within a Table livewire component:
protected function getTableHeaderActions(): array
    {
        return [
            Action::make('create')
                ->button()
                ->label(__('Create'))
                ->icon('heroicon-s-plus')
                ->visible(auth()->user()->can('core_create_field_type'))
                ->form($this->getFormSchema())
                ->action(function (array $data) {
                    ray($data);
                }),
        ];
protected function getTableHeaderActions(): array
    {
        return [
            Action::make('create')
                ->button()
                ->label(__('Create'))
                ->icon('heroicon-s-plus')
                ->visible(auth()->user()->can('core_create_field_type'))
                ->form($this->getFormSchema())
                ->action(function (array $data) {
                    ray($data);
                }),
        ];

$this->getFormSchema() returns an array of form's fields.

When I click the button, the loading indicator is shown, but no modal opens, did I miss smth ?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Override Model for Create/EditAction?
FilamentFFilament / ❓┊help
3y ago
Render Single Table action on different place
FilamentFFilament / ❓┊help
3y ago