General panel settings like `stickyFormActions` or `alignFormActionsCenter`

I found these methods in the BasePage class, but nothing in the docs. How to use them? I wanna have all form action buttons in the middle, not in start (aka left) as the default?
Solution:
```php public function panel(Panel $panel): Panel { return $panel ->bootUsing(function () {...
Jump to solution
5 Replies
LeandroFerreira
LeandroFerreira17mo ago
CreatePage/EditPage
public static string $formActionsAlignment = 'center';
public static string $formActionsAlignment = 'center';
bernhard
bernhardOP17mo ago
no, i mean a global setting. settimg it on every single page, modal, etc is, ehm.... in v2 this was a config Option
awcodes
awcodes17mo ago
I just did this the other day and can’t remember what class I was calling them on. But it is possible. I’ll get back to you as soon as I can unless someone else chimes in. But that site isn’t on a repo yet and I’m away from my computer.
bernhard
bernhardOP17mo ago
Thanks. I was thinking, that I could do it with configureUsing like on other elements, but this is not available on Page. Would love to see your solution.
Solution
LeandroFerreira
LeandroFerreira17mo ago
public function panel(Panel $panel): Panel
{
return $panel
->bootUsing(function () {
Page::formActionsAlignment('center');
})
...
public function panel(Panel $panel): Panel
{
return $panel
->bootUsing(function () {
Page::formActionsAlignment('center');
})
...
Want results from more Discord servers?
Add your server