I have a repeat
dmx-bind:repeat="sc_menus.data.q_menus.where(`menu_id`, 32, '==')"
which gives me a list to use in a radio group.
Let’s say it gives me a list of four results
2, 4, 6, 8
I want to add a zero to the beginning to give a fifth result (but only on this one occasion)
0
How can I do that client-side?
How can I add the zero to the beginning of the repeat so as to end up with this result?
0, 2, 4, 6, 8
Obviously not like this (that would be silly!)…
dmx-bind:repeat="'0' + sc_menus.data.q_menus.where(`menu_id`, 32, '==')"
The actual data per line is returned is like this, and it is 'list_label'
that wants to be added as a '0'
label: "Tyre Depths"
list_code: null
list_label: "6"
list_price: null
list_ref: null
menu_id: 32
menu_list_id: 173
Community Page
Last updated:
Last updated: