Skip to main content

onChangeCurrentSlide

The function called when the current slide has changed.

Parameters

NameData typeDescription
indexnumberThe index of the newly activated slide.

Example

window.Asc.plugin.attachEditorEvent('onChangeCurrentSlide', (index) => {
console.log('Current slide changed to index: ' + index);
});