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 😊

]]>
« (Previous Post)

2 Commentsto Hello

  1. Anonymous says:

    < ![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()

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thank you Pierre Hébert. I’ll try to do something 😊

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *