F
Filament11mo ago
Hurruwa

Dinamicaly add values to a radio component

Hi, did anyone knows if possible how to add values to the options of a Radio Component?? Thnaks in advance.
Solution:
Should be possible... you can use a closure for the options:
->options(fn () => /* build your array here */ )
->options(fn () => /* build your array here */ )
...
Jump to solution
2 Replies
Solution
Patrick Boivin
Patrick Boivin11mo ago
Should be possible... you can use a closure for the options:
->options(fn () => /* build your array here */ )
->options(fn () => /* build your array here */ )
Hurruwa
Hurruwa11mo ago
Thanks, you are right i did just like that. ç