Dashboard.moveSlideToPosition

Syntax

moveSlideToPosition(index);

Parameters

index. Index of the slide, with must be replaced with the active slide.

Description

The moveSlideToPosition method moves dashboard slide to the specified position.

Example

To execute the example, make sure that the repository contains a dashboard with the 88665 key. The dashboard must contain at least four 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:

// Get fourth slide
kapBox.showSlide({
    SlideIndex: 3
})
// Move slide to the place of the second slide
kapBox.moveSlideToPosition(1);

After executing the example, the fourth slide is moved to the place of the second slide.

See also:

Dashboard