Skip to content

Latest commit

 

History

History
 
 

plugins

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Build-in Plugins

Introduction

These plugins will be automatically installed.

Conventions

  • the plugin should provide an install function which will be called with the DoSlide as the first argument, along with possible config.
{
    install: function(DoSlide, config) {
        // add a global function
        DoSlide.pluginFunction = ...
        // add an instance function
        DoSlide.prototype.pluginFunction = ...
    },
    ...
}
  • Install the plugin by invoking DoSlide.use(plugin[, config]).
// it will call myPlugin.install(DoSlide, config)
DoSlide.use(myPlugin, config)