Search.../

slides

Gets a list of all the slides contained in the slideshow.

Description

Note that the slide indices in a slideshow are zero-based, even though they are numbered starting from 1 in the Editor.

Type:

Array<Slide>Read Only

Was this helpful?

Get a slideshow's slides

Copy Code
1let mySlides = $w("#mySlideshow").slides;
Get the slides, number of slides, and name of the first slide from a slideshow

Copy Code
1let mySlides = $w("#mySlideshow").slides;
2
3let numSlides = mySlides.length; // 7
4let firstSlideName = mySlides[0].name; // "Slide 1"