how to make panel resource edit page save button to be sticky like v2?

In v2 there is a simple config to change in config/filament.php to make edit resource page save button sticky
'forms' => [
'actions' => [
'alignment' => 'left',
'are_sticky' => true,
],
'have_inline_labels' => false,
],
'forms' => [
'actions' => [
'alignment' => 'left',
'are_sticky' => true,
],
'have_inline_labels' => false,
],
in v3 what is the equivalent? I can't find it in the documentation
7 Replies
Patrick Boivin
Patrick Boivin15mo ago
You can add this in a service provider's boot method:
MyPage::stickyFormActions(true);
MyPage::stickyFormActions(true);
pocket.racer
pocket.racerOP15mo ago
can only enable for a single page? not whole panel?
Patrick Boivin
Patrick Boivin15mo ago
Try it on the BasePage class:
BasePage::stickyFormActions(true);
BasePage::stickyFormActions(true);
pocket.racer
pocket.racerOP15mo ago
i got 3 panels, can this be restricted to just 1 panel?
Patrick Boivin
Patrick Boivin15mo ago
Try the boot() method of the panel provider.
pocket.racer
pocket.racerOP15mo ago
thank you i will try it tmr
Martin Branches
Martin Branches11mo ago
I did this but the buttons are not sticky all the time, they disappear on a certain point while scrolling: return $panel ->bootUsing(function () { Page::stickyFormActions(true); })
Want results from more Discord servers?
Add your server