Hello
Hello,
I’ve written a script to change the icon’s label when a position is reached (by clicking the icon) but if I swipe on the homescreen, the label don’t change (of course as i’ve not clicked the icon).
So, what’s the property/method I have to use? And I think I’ll need to write a new script and set it in “position change” am I right?
Thanks in advance 😊
]]>
< ![CDATA[
You need to use Item.setLabel in a script run from the “Position changed” event.
You could use the current X position versus the page width (that is: the container width) to compute the current page, or use a predefined range, depending on your need.
You can get the current container position using LL.getEvent().getContainer().getPositionX()
]]>
< ![CDATA[
Thank you Pierre Hébert. I’ll try to do something 😊
]]>