-
-
Notifications
You must be signed in to change notification settings - Fork 8
JavaScript API
Ondřej Žára edited this page Sep 20, 2013
·
4 revisions
Use these for your own modules.
-
Slides.modules
- available modules and their configuration -
Slides.slides
- all slides (instances of aSlide
) -
Slides.current
- currently displayed slide -
Slides.next(skipSections)
- navigate to a next slide or section -
Slides.prev(skipSections)
- navigate to a previous slide or section -
Slides.show(slide, section)
- navigate to an explicitely specified slide (section is optional; it is an index of the last shown slide section) -
Slides.addScript(path)
- add a new script to the page -
Slides.addStylesheet(path)
- add a new CSS stylesheet to the page -
Slides.addKeyListener(listener, keys, label)
- register a keyboard handler.Listener
is a function,keys
is a keyCode or a character or an array of these,label
is a textual label for the Help window -
Slides.addChangeListener(listener)
- register a handler for slide change -
Slides.format(template)
- format a template (see Title/Progress modules)