Bene Richi
Bene Richi
FFilament
Created by Jon Mason on 12/2/2023 in #❓┊help
Open modal from edit table action
Thanks Jon, I will once take a look again 🙂
11 replies
FFilament
Created by Crylar on 5/11/2023 in #❓┊help
Is there a way to have a confirmation dialogue on ToggleColumn on table?
Hey guys! I'm facing the same problem. In my case whenever I toggle the ToggleColumn on a table item to "true" it triggers a DELETE request to a third-party tool. The issue arises when I unintentionally toggle the button, as there's no straightforward way to undo the actions triggered by the toggle. Adding a confirmation modal to the ToggleColumn would be a helpful solution.
12 replies
FFilament
Created by Jon Mason on 12/2/2023 in #❓┊help
Open modal from edit table action
I am stuck here aswell. I have a toggleColumn on a table and when I toggle it I would like to show a confirmation modal. Will let you know when I have found out something. I already created a new action but its not necessary as it seems because a new action is like adding a "new button" to the frontend.
11 replies
FFilament
Created by Bene Richi on 12/1/2023 in #❓┊help
Call custom function after Toggle button changed (Outside Form)
Thank you all !
10 replies
FFilament
Created by Bene Richi on 12/1/2023 in #❓┊help
Call custom function after Toggle button changed (Outside Form)
I was already on FilamentPhp v3.0. DId not expect that this hook was introduced later.
10 replies
FFilament
Created by Bene Richi on 12/1/2023 in #❓┊help
Call custom function after Toggle button changed (Outside Form)
Yes solve now by composer upgrade.
10 replies
FFilament
Created by Bene Richi on 12/1/2023 in #❓┊help
Call custom function after Toggle button changed (Outside Form)
No description
10 replies
FFilament
Created by Bene Richi on 12/1/2023 in #❓┊help
Call custom function after Toggle button changed (Outside Form)
ToggleColumn::make('is_abo_stop')
->afterStateUpdated(fn ($state, callable $set) => $set(dd($state)))
->label('Abo Stop')
->onIcon('heroicon-m-stop')
->offIcon('heroicon-m-check')
->onColor('warning'),
ToggleColumn::make('is_abo_stop')
->afterStateUpdated(fn ($state, callable $set) => $set(dd($state)))
->label('Abo Stop')
->onIcon('heroicon-m-stop')
->offIcon('heroicon-m-check')
->onColor('warning'),
10 replies
FFilament
Created by Bene Richi on 12/1/2023 in #❓┊help
Call custom function after Toggle button changed (Outside Form)
Hmmm.. I tried to add the "afterStateUpdated" hook to my ToggleColumn, following the instructions in the docs. But it turns out, ToggleColumn doesn't even have that function. Method Filament\Tables\Columns\ToggleColumn::afterStateUpdated does not exist.
10 replies