F
Filament16mo 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 Boivin16mo 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
HurruwaOP16mo ago
Thanks, you are right i did just like that. ç
Want results from more Discord servers?
Add your server