togglebutton group information
hello team, I read the docs, but I still not have the right behaviour I want with filament
I created a filament page, with a form filled, and I want to group my items by sort of information
In other words, I have an array which contains another array in it, and I would like to split my array into 2 defined groups
It works well if my $orientations array is flat : [1 => 'first', 2=>'second', 3=>'third'];
but I would like to split my array [1 => ['A', 'B', 'C'], 2 => ['Z', 'Y', 'X']]
Do you have any idea to do this easily ?
Thank you for your help π
4 Replies
Hmm, not sure I follow? You have a single toggle what are you trying to do in the afterStatEU[dated since you are not sending those functions I am a little unsure.
I put my complete code, but only ->options() is interesting in that case. I changed the initial sourcecode to avoid confusion
Right, that's just not possible. As it stands the nesting of the options is single level. For what you want, you probably want to manipluate the data and build a toggle for each of the split arrays.
yes, it is what I supposed. Thanks, I just wanted to be sure it wasn't another option to do that. I put my question as resolved π