Hello All,
I'm looking at the Event explorer / watch properties sample and don't recognize the use of HTMLElement#highlightTimeout.
Obviously the sample works correctly but TypeScript doesn't recognize highlightTimeout nor can I find it documented.
Can someone please explain?
Thanks!
--john
Solved! Go to Solution.
It's just a way to store the timeout on the element it's related to. It's not JSAPI specific thing, just how the sample is set up. TS won't be able to type it without using any or trying to set up your own type.
In a production app, you would probably store the timeouts in a HashMap with a data-attribute for look up or another similar data structure.
It's just a way to store the timeout on the element it's related to. It's not JSAPI specific thing, just how the sample is set up. TS won't be able to type it without using any or trying to set up your own type.
In a production app, you would probably store the timeouts in a HashMap with a data-attribute for look up or another similar data structure.