Trying to change export action position with render hook
tried to use this code inside AppServiceProvider but did not worked. i know that i need to use which render hook name but did not understand how to find export action view thing, anyone have any idea about it ? I guess problem is about view name but could not find export action view name.
FilamentView::registerRenderHook(
TablesRenderHook::TOOLBAR_SEARCH_AFTER,
fn(): View=> view('filament-actions::export.label'),
);
2 Replies
for example i tried this
FilamentView::registerRenderHook(
'tables::toolbar.search.after',
fn(): string => ExportAction::make()
->exporter(RivalAnalysisExporter::class)
->render()
);
i fixed with this approach