Step: function (sender,args)
sender. Event source.
args. Event information.
The Step event occurs on moving to the succeeding step of the timeline.
To execute the example the page must contain the MapChart component named map (see Map Layout on HTML Page) for which a timeline is set up (see Example of Timeline Setup). Add a handler for the Step event:
tl.Step.add(function ()
{
console.log(tl.getCurrentStep())
})
After executing the example enable timeline animation (click the button ). The number of the passed step is shown to the console after each step.
See also: