Update docs

This commit is contained in:
Raj Siva-Rajah
2024-04-04 12:19:45 +00:00
parent 42997e7806
commit 909c5104ea
+9
View File
@@ -272,6 +272,15 @@ Now, in the view file, you can render the action button by calling `getModalActi
</div>
```
## Adding extra attributes to modal container
You may also pass extra HTML attributes to the modal container using `extraModalAttributes()`:
```php
Action::make('updateAuthor')
->extraModalAttributes(['class' => 'update-author-modal'])
```
## Using a slide-over instead of a modal
You can open a "slide-over" dialog instead of a modal by using the `slideOver()` method: