Select to view content in your preferred language

HTMLElement#highlightTimeout in event-explorer demo

404
1
Jump to solution
11-07-2022 08:29 AM
john_cartwright_noaa
Regular Contributor

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

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Honored Contributor

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.

View solution in original post

1 Reply
ReneRubalcava
Honored Contributor

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.