© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
10 replies
daniik

TableRenderHook Action

Hi, I'm trying to add my button action to the table next to the filters. For some reason, the slideOver modal doesn't open and the action just disappears. How do I correctly add the hook for that action?

public function mount(): void
{
    FilamentView::registerRenderHook(
        TablesRenderHook::TOOLBAR_END,
        function () {
            return Blade::render('{{ $action }} <x-filament-actions::modals />', [
                'action' => $this->getGraphAction()
            ]);
        }
    );
}

private function getGraphAction(): Action
{
    return \Filament\Tables\Actions\Action::make('graphs')
        ->iconButton()
        ->icon('heroicon-o-chart-pie')
        ->iconSize(IconSize::Large)
        ->size(ActionSize::ExtraLarge)
        ->color('success')
        ->slideOver()
        ->modalContent(View::make('filament.widgets.tracker-graphs-widget'))
        ->modalHeading('')
        ->modalSubmitAction(false)
        ->modalCancelAction(false);
}
public function mount(): void
{
    FilamentView::registerRenderHook(
        TablesRenderHook::TOOLBAR_END,
        function () {
            return Blade::render('{{ $action }} <x-filament-actions::modals />', [
                'action' => $this->getGraphAction()
            ]);
        }
    );
}

private function getGraphAction(): Action
{
    return \Filament\Tables\Actions\Action::make('graphs')
        ->iconButton()
        ->icon('heroicon-o-chart-pie')
        ->iconSize(IconSize::Large)
        ->size(ActionSize::ExtraLarge)
        ->color('success')
        ->slideOver()
        ->modalContent(View::make('filament.widgets.tracker-graphs-widget'))
        ->modalHeading('')
        ->modalSubmitAction(false)
        ->modalCancelAction(false);
}
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

ActionGroup Action caching custom view
FilamentFFilament / ❓┊help
9mo ago
Form actions must be an instance of Filament\Actions\Action, or Filament\Actions\ActionGroup.
FilamentFFilament / ❓┊help
3y ago
Form\Actions\Action call javascript?
FilamentFFilament / ❓┊help
3y ago
Form Actions\Action everything null
FilamentFFilament / ❓┊help
3y ago