Constructors
constructor
- new Plugin(element: any, options: any, ns: string): Plugin
-
Parameters
-
element: any
-
options: any
-
ns: string
Properties
Protected $body
$body: JQuery
Protected $document
$document: JQuery
Protected $element
$element: JQuery
Protected $window
$window: JQuery
NAMESPACE
NAMESPACE: string
Protected _options
_options: any
Static defaults
defaults: any
Methods
_on
- _on(name: string, cb: any): Plugin
- _on(name: string, sel?: string, cb?: any): Plugin
-
Parameters
-
Parameters
-
name: string
-
Optional sel: string
-
Optional cb: any
_trigger
- _trigger(name: string, extraParameters?: any[] | Object): Plugin
-
Parameters
-
name: string
-
Optional extraParameters: any[] | Object
Static register
- register(name: string, pluginClass: any): void
-
Parameters
-
name: string
-
pluginClass: any
Returns void
The Plugin class is a base class for jQuery plugins.
Plugin