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);
}