Impement Action to show modal at custom page in Widget

Hello everyone, I'm trying to implement a Calendar with basic functionality but seems to be complicated work with Modals. Trying to add a modal for view event details on clic on it, the modal isn't displayed. I'm using GuavaCZ/Calendar package (still in develop) part of code:
use Filament\Actions\Action;
.
.
.
public function onEventClick(array $info = [], ?string $action = null): void
{
// Show detailed event info
Action::make()
->record(Commission::find(1))
->form([
TextInput::make('name')
->required()
->maxLength(255),
// ...
])->action(function (array $data): void {
dd($data);
});

}
use Filament\Actions\Action;
.
.
.
public function onEventClick(array $info = [], ?string $action = null): void
{
// Show detailed event info
Action::make()
->record(Commission::find(1))
->form([
TextInput::make('name')
->required()
->maxLength(255),
// ...
])->action(function (array $data): void {
dd($data);
});

}
This code is a test, how can I make it work? V3 with panels (new project) Some help is appreciated.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server