Dashboard.getActiveSlideIndex

Syntax

getActiveSlideIndex();

Description

The getActiveSlideIndex method returns index of active dashboard slide.

Example

To execute the example, make sure that the repository contains a dashboard with the 88665 key. The dashboard must contain slides.

Create an HTML page with example of placing the KapBox component and execute the following operations:

  1. Open the dashboard with the 88665 key:

kapBox.open({
    Key: 88665
});
  1. Execute the following in the console:

console.log("Active slide index " + kapBox.getActiveSlideIndex());

After executing the example the console displays the message with active slide index.

See also:

Dashboard