DiegoAbdo
DiegoAbdo
FFilament
Created by DiegoAbdo on 5/16/2024 in #❓┊help
Cluster Margin
No description
2 replies
FFilament
Created by DiegoAbdo on 11/22/2023 in #❓┊help
CreateOptionAction type error
I'm trying to create a button next to my select field with a createOptionAction but i´m still receiving this error, this is a Filament Page with a getFormSchema() App\Filament\Pages\ToolReceipt::App\Filament\Pages{closure}(): Argument #1 ($action) must be of type App\Filament\Pages\Components\Actions\Action, Filament\Forms\Components\Actions\Action given, called in /code/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php on line 36 I already tried Section::make('Agregar Documento') ->schema([ Grid::make(4) ->schema([ Select::make('addDocument') ->label('Agregar Documento') ->placeholder("Selecciona una opción") ->options([ '01' => 'Físico', '02' => 'Electrónico', ]) ->default('01') ->createOptionForm([ TextInput::make('name') ->label(('Nombre del documento')) ->required(), ]) ->createOptionAction(function (Pages\Forms\Components\Actions\Action $action) { return $action ->modalHeading(('Nombre del documento')) ->modalButton(('Nombre del documento')) ->modalWidth('lg'); }) ->reactive(), ]), ])
1 replies