CurrentStep:
The CurrentStep property determines current step of the timeline.
Territory fill changes on step change.
Step numbering starts with 0.
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 value editor which values will determine the number of current step:]
var numbers = new PP.Ui.NumberEdit(
{
Width: 50,
Height: 30,
ParentNode: document.getElementById("div1"),
AfterValueChange: function (sender, args)
{
var tl = map.getTimeline()
tl.setCurrentStep(numbers.getValue() - 1)
}
});
After executing the example value editor will be added. To change the current step of the timeline, set appropriate value in the editor:
See also: