From 909c5104ea5c5683a0901ec1aaa08f5dba18f0ca Mon Sep 17 00:00:00 2001 From: Raj Siva-Rajah <5361908+binaryfire@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:19:45 +0000 Subject: [PATCH] Update docs --- packages/actions/docs/04-modals.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/actions/docs/04-modals.md b/packages/actions/docs/04-modals.md index 2d3c11b78f..8537e3e55a 100644 --- a/packages/actions/docs/04-modals.md +++ b/packages/actions/docs/04-modals.md @@ -272,6 +272,15 @@ Now, in the view file, you can render the action button by calling `getModalActi ``` +## 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: