I have a list of objects that I am using to create a menu with checkboxes. I want to set the checked property on these checkboxes on load by basing it off of an Enum value that the object model has.
Here is an example of what I tried:
<li repeat.for="item of items">
<input type="checkbox" checked="${item.status == 'EnumValue' ? 'checked' : '' />
</li>
This did not work. Can anyone give me a nudge in the right direction?
Thanks!
Aucun commentaire:
Enregistrer un commentaire