mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Fix save action type
This commit is contained in:
@@ -305,7 +305,7 @@ To view the entire actions API, please visit the [pages section](../pages#adding
|
||||
|
||||
### Adding a save action button to the header
|
||||
|
||||
The "Save" button can be moved to the header of the page by overriding the `getHeaderActions()` method and using `getSaveFormAction()`. You need to pass `formId()` to the action, to specify that the action should submit the form with the ID of `form`, which is the `<form>` ID used in the view of the page:
|
||||
The "Save" button can be added to the header of the page by overriding the `getHeaderActions()` method and using `getSaveFormAction()`. You need to pass `formId()` to the action, to specify that the action should submit the form with the ID of `form`, which is the `<form>` ID used in the view of the page:
|
||||
|
||||
```php
|
||||
protected function getHeaderActions(): array
|
||||
|
||||
Reference in New Issue
Block a user