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
Hi, I have a use case in there I need to make some options of a check_boxes collection visible or hidden. If I could set a class on each item's wrapper depending on its attributes would be great because I can get some rendering like:
I think it could be done allowing a lambda on item_wrapper_class option, passing to lambda function the current item on rendering iteration, for example:
I tried with collection making options as an array like [[label, id, { class: 'custom-class' }], [...], ...] and it works but not as desired because it puts the class of course on the input element, but I need it on the item's wrapper.
Or actually is there another way to get it work as I need? I have not found any other solution.
The text was updated successfully, but these errors were encountered:
camilova
changed the title
input_wrapper_class with lambda
item_wrapper_class with lambda
Oct 20, 2020
Hi, I have a use case in there I need to make some options of a check_boxes collection visible or hidden. If I could set a class on each item's wrapper depending on its attributes would be great because I can get some rendering like:
I think it could be done allowing a lambda on
item_wrapper_class
option, passing to lambda function the currentitem
on rendering iteration, for example:I tried with
collection
making options as an array like[[label, id, { class: 'custom-class' }], [...], ...]
and it works but not as desired because it puts the class of course on the input element, but I need it on the item's wrapper.Or actually is there another way to get it work as I need? I have not found any other solution.
The text was updated successfully, but these errors were encountered: