Change the row color of Repeatbox

93 Views Asked by At

Is there a way to change row color of repeatbox object in smartface app studio when the item selected or touched? Also how can we do that dynamically?

2

There are 2 best solutions below

1
On BEST ANSWER

You can try this in onRowRender event of RepeatBox;

this.fillColor = ((e.rowIndex % 2)=== 0 ? "#ECECEC" : "#FFFFFF");

Smartface.io Team

0
On

if you want it on selected, you can use repeatbox active item properties. You can add what u want to row with this Activeitem. For use, u have to tick property or dynamicly assigne true the "use active item" property. And add your items to activeItem row.