unclear how to manage radio inputs with tl-controlled
Closed this issue · 1 comments
JRJurman commented
Summary
Right now, there is no obvious way to manage a set of radio inputs with Tram-Lite. The existing parameters for tl-controlled
don't lend themselves to this common example.
It would be valuable for us to have an example here, or update the API to handle this use-case.
JRJurman commented
So, it looks like with input groups, there isn't a 1-to-1 mapping that works, but you can use a fieldset
tag, and bind an event on that. The following is a good example of what that might look like: https://codepen.io/JRJurman/pen/oNmEpbz
If you can't use a fieldset element, it's possible to use tl-rebroadcast
on the individual elements, and have the host component consume some re-broadcasted event.