[JavaScript Timing Events] How to use clearInterval or clearTimeout action

[JavaScript Timing Events] How to use clearInterval or clearTimeout action

  
Forge Component
(2)
Published on 2017-09-26 by Hélio Dolores
2 votes
Published on 2017-09-26 by Hélio Dolores

How do I use the clear action; What do I use for the input paramter Id.


Hi Matthias,

It should be the Id of the timer. But I see that I'm not returning that on the widgets, and you might find confusing if you are trying to stop the widget timer using the API and not by destroying the element (which makes perfect sense).

Maybe I should add one event returning the ID so that you can invoke the clear API.

Thanks!


Solution

There's a new version with that Event. 

I've updated the example too, I hope it helps.

Thanks!


Solution