Options
All
  • Public
  • Public/Protected
  • All
Menu

The Plugin class is a base class for jQuery plugins.

class

Plugin

Hierarchy

  • Plugin

Index

Constructors

constructor

  • new Plugin(element: any, options: any, ns: string): Plugin

Properties

Protected $body

$body: JQuery

Protected $document

$document: JQuery

Protected $element

$element: JQuery

Protected $window

$window: JQuery

NAMESPACE

NAMESPACE: string

VERSION

VERSION: string

Protected _options

_options: any

enabled

enabled: boolean

Static defaults

defaults: any

Accessors

app

options

  • get options(): any

Methods

Protected _create

  • _create(): void

Protected _destroy

  • _destroy(): void

_on

  • _on(name: string, cb: any): Plugin
  • _on(name: string, sel?: string, cb?: any): Plugin

_trigger

  • _trigger(name: string, extraParameters?: any[] | Object): Plugin

destroy

  • destroy(): void

instance

Static register

  • register(name: string, pluginClass: any): void