Hey All,
Just trying to some syntax right so that i can use dmx-show (or hide if its easier) to only show a button/icon on the last row of a ‘Repeat Childern’ div.
Currently simple operations so that it only shows on the first row, or every row, or not on the first row etc… with code like:
How could i get it to only show on the last row?
I was thinking something like dmx-show:"$index == max.($index) " but that’s not quite right… any ideas?
Cheers!
Hi Philip,
You can use:
dmx-show="$index == items.length - 1"
this will show only the last item of the repeat.
Yep. That worked. Thanks @Teodor and Happy Birthday 
Out of curiosity, would i have been able to find those options in the expression builder or only through writing the code in?
Thanks 
I don’t think items
is available for the repeat regions in the UI, maybe we can add this after our summer vacation 
No rush, all good! Enjoy the well deserved break.
1 Like