© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
27 replies
usmcgator

How to set prependActions on table

Is there a similar method to the ->prependActions() method when creating a table definition in a TableWidget?

I'm getting the Table Actions like this:

    protected function getTableActions(): array
    {
        return [
            Impersonate::make('impersonate')->icon('heroicon-o-users'),
        ];
    }
    protected function getTableActions(): array
    {
        return [
            Impersonate::make('impersonate')->icon('heroicon-o-users'),
        ];
    }

but I don't think there's a getTablePrependActions() method similar to ->prependActions() , so I tried making a public function, but that didn't work.

    public function getTablePrependActions(): int | string | array
    {
        return [
            Impersonate::make('impersonate'),
        ];
    }

    public function render(): View
    {
        $this->getTablePrependActions();
        return view('filament.widgets.user-widget');
    }
    public function getTablePrependActions(): int | string | array
    {
        return [
            Impersonate::make('impersonate'),
        ];
    }

    public function render(): View
    {
        $this->getTablePrependActions();
        return view('filament.widgets.user-widget');
    }


Where am I going wrong here?
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

Table::prependActions does not exist.
FilamentFFilament / ❓┊help
3y ago
How to set tooltip on table header?
FilamentFFilament / ❓┊help
16mo ago
How to set the default action on table row click
FilamentFFilament / ❓┊help
12mo ago
How to set the record url on a resource table
FilamentFFilament / ❓┊help
3y ago