You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ToggleButtons and Toggle fields do not allow you to set them as active by default, that is, mark them as true by default. In some cases, you need to activate a feature and leave them as active by default, and if the client wants, they can deactivate them.
The default(true) function has no effect on these fields, because in both components it is set to false in the component's setUp, as shown in the links below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The ToggleButtons and Toggle fields do not allow you to set them as active by default, that is, mark them as true by default. In some cases, you need to activate a feature and leave them as active by default, and if the client wants, they can deactivate them.
The
default(true)
function has no effect on these fields, because in both components it is set tofalse
in the component'ssetUp
, as shown in the links below.Toggle
filament/packages/forms/src/Components/Toggle.php
Line 25 in 753ceea
ToggleButtons
filament/packages/forms/src/Components/ToggleButtons.php
Line 35 in 753ceea
To get the
default(true)
, I needed to do as shown in the example below:Beta Was this translation helpful? Give feedback.
All reactions