mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Modal class is replaced with ModalComponent class to correct the documentation.
This commit is contained in:
@@ -671,7 +671,7 @@ Action::make('updateAuthor')
|
||||
|
||||
<UtilityInjection set="actions" version="4.x">The `closeModalByClickingAway()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters.</UtilityInjection>
|
||||
|
||||
If you'd like to change the behavior for all modals in the application, you can do so by calling `Modal::closedByClickingAway()` inside a service provider or middleware:
|
||||
If you'd like to change the behavior for all modals in the application, you can do so by calling `ModalComponent::closedByClickingAway()` inside a service provider or middleware:
|
||||
|
||||
```php
|
||||
use Filament\Support\View\Components\ModalComponent;
|
||||
@@ -698,7 +698,7 @@ Action::make('updateAuthor')
|
||||
|
||||
<UtilityInjection set="actions" version="4.x">The `closeModalByEscaping()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters.</UtilityInjection>
|
||||
|
||||
If you'd like to change the behavior for all modals in the application, you can do so by calling `Modal::closedByEscaping()` inside a service provider or middleware:
|
||||
If you'd like to change the behavior for all modals in the application, you can do so by calling `ModalComponent::closedByEscaping()` inside a service provider or middleware:
|
||||
|
||||
```php
|
||||
use Filament\Support\View\Components\ModalComponent;
|
||||
@@ -725,7 +725,7 @@ Action::make('updateAuthor')
|
||||
|
||||
<UtilityInjection set="actions" version="4.x">The `modalCloseButton()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters.</UtilityInjection>
|
||||
|
||||
If you'd like to hide the close button for all modals in the application, you can do so by calling `Modal::closeButton(false)` inside a service provider or middleware:
|
||||
If you'd like to hide the close button for all modals in the application, you can do so by calling `ModalComponent::closeButton(false)` inside a service provider or middleware:
|
||||
|
||||
```php
|
||||
use Filament\Support\View\Components\ModalComponent;
|
||||
@@ -752,7 +752,7 @@ Action::make('updateAuthor')
|
||||
|
||||
<UtilityInjection set="actions" version="4.x">The `modalAutofocus()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters.</UtilityInjection>
|
||||
|
||||
If you'd like to disable autofocus for all modals in the application, you can do so by calling `Modal::autofocus(false)` inside a service provider or middleware:
|
||||
If you'd like to disable autofocus for all modals in the application, you can do so by calling `ModalComponent::autofocus(false)` inside a service provider or middleware:
|
||||
|
||||
```php
|
||||
use Filament\Support\View\Components\ModalComponent;
|
||||
|
||||
Reference in New Issue
Block a user