Hello,
I need help setting the value of a variable whose name is determined at run-time:
<dmx-value dmx-bind:id="isModified_' + $index" dmx-bind:value="false"></dmx-value>
<input type="checkbox" dmx-on:changed="('isModified_' + $index).setValue(true)">
When the checkbox is ticked, the value of the variable should be updated. I don’t know how to do it
P.S.: The $index
is because this code is inside a repeater
Context:
I have a table populated through a dmx-repeat, and one of the columns contains a checkbox. If the user ticks the checkbox, I want to add a symbol/icon indicating the row has been updated (and therefore has pending changes to save)