ToggleColumn and Modal Confirmation (Action?)
Hi, I'm trying to understand how to make a modal appear when clicking on a field set as "ToggleColumn".
I also tried with
updateStateUsing()
method , afterStateUpdated()
method, beforeStateUpdated()
method but I can't get the modal to appear:
Tables\Columns\ToggleColumn::make('monitorable')
->label("É Monitorabile?")
->onColor(fn ($record) => $record->monitorable ? 'success' : 'danger')
->offColor('danger')
->onIcon('heroicon-m-check')
->offIcon('heroicon-m-x-mark')
->alignment(Alignment::Center)
->beforeStateUpdated(function () {
Action::make('updateMonitorablesNotes')
->form([
Select::make('monitorable_notes')
->label('Motivo Esclusione')
->options([
...
...
])
->required(),
]);
}),
Do you have any advice?
Thank you!1 Reply
GitHub
Modal inside a ToggleColumn (using Action) is not showing · filamen...
Hi, I'm trying to understand how to make a modal appear when clicking on a field set as "ToggleColumn". Upon clicking I have to save the value that appears in the modal in another fie...