GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Selectize
  • Get Started
  • Examples
  • API Documentation
  • Community
  • GitHub
  • Guides
  • constants
  • selectize
  • highlight
  • utils
  • microevent
  • microplugin
  • sifter

This view

  • Original page
  • New address

GeezerVison is showing selectize.dev — microplugin | Selectize

API Documentation for microplugin

MicroPlugin​

MicroPlugin

Kind: global class

  • MicroPlugin
    • new MicroPlugin(items, items)
    • .Interface.plugins
    • .Interface#initializePlugins(plugins)
    • .Interface#loadPlugin(name)
    • .Interface#require(name)
    • .Interface.define(name, fn)

new MicroPlugin(items, items)​

Keep code modularized & extensible. MicroPlugin is a lightweight drop-in plugin architecture for your JavaScript library. Plugins can declare dependencies to other plugins and can be initialized with options (in a variety of formats).

ParamType
itemsarray | object
itemsobject

MicroPlugin.Interface.plugins​

Kind: static property of MicroPlugin

MicroPlugin.Interface#initializePlugins(plugins)​

Initializes the listed plugins (with options). Acceptable formats:

  • List (without options): - ['a', 'b', 'c']
  • List (with options): - [{'name': 'a', options: {}}, {'name': 'b', options: {}}]
  • Hash (with options): - {'a': { ... }, 'b': { ... }, 'c': { ... }}

Kind: static method of MicroPlugin

ParamType
pluginsmixed

MicroPlugin.Interface#loadPlugin(name)​

Loads a plugin.

Kind: static method of MicroPlugin

ParamTypeDescription
namestringThe name of the plugin to load.

MicroPlugin.Interface#require(name)​

Initializes a plugin.

Kind: static method of MicroPlugin

ParamType
namestring

MicroPlugin.Interface.define(name, fn)​

Registers a plugin.

Kind: static method of MicroPlugin

ParamType
namestring
fnfunction
  • MicroPlugin
    • new MicroPlugin(items, items)
    • MicroPlugin.Interface.plugins
    • MicroPlugin.Interface#initializePlugins(plugins)
    • MicroPlugin.Interface#loadPlugin(name)
    • MicroPlugin.Interface#require(name)
    • MicroPlugin.Interface.define(name, fn)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.