new InactivityTimer(params)
Add-On that puts the chart into "sleep mode" after a period of inactivity.
Requires addOns.js.
In sleep mode, a class "ciq-sleeping" will be added to the body. This will dim out the chart. Sleep mode is ended when interaction with the chart is detected.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | Configuration parameters Properties
|
- Since:
-
3.0.0
Example
new CIQ.InactivityTimer({stx:stxx, minutes:30, interval:15}); //30 minutes of inactivity will put chart into sleep mode, updating every 15 seconds