Toggle as Action
Hi, is it possible to have an action that is basically a toggle?
So this: https://filamentphp.com/docs/3.x/forms/fields/toggle but than as an Action
Kr,
Wannes
8 Replies
Toggle is already an action in tables, what are you trying to do for a toggle in a form as an action?
I think they’re after an action that looks like a toggle.
Possibly... but to do what..... in a form that a toggle can't do...
Probably use it in a header outside of a form.
I don’t know though. 🙂
Button A has to have different behavior when the toggle is enabled. So a toggle that looks like an action indeed.
So just an action with an if-else construct?!
This but as a toggle
Okay, so you want a Toggle but positioned with the Header Actions.
You could create a Custom Action and override the view