You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FilamentComponentConfigurator.php 519B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Support;
  3. use Filament\Actions\CreateAction;
  4. use Filament\Actions\MountableAction;
  5. use Filament\Support\Enums\Alignment;
  6. class FilamentComponentConfigurator
  7. {
  8. public static function configureActionModals(MountableAction $action): void
  9. {
  10. $action
  11. ->stickyModalHeader()
  12. ->stickyModalFooter()
  13. ->modalFooterActionsAlignment(Alignment::End);
  14. if ($action instanceof CreateAction) {
  15. $action->createAnother(false);
  16. }
  17. }
  18. }