namespace staticWX. PlugIn
Source: waax.
Methods
staticdefineType(plugin, type)
Defines type of a plug-in. Required in plug-in definition.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
plugin |
|
Target plug-in. |
|
type |
String |
|
Plug-in type. |
staticextendPrototype(plugin, type)
Extends plug-in prototype according to the type. Required in plug-in definition.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
plugin |
|
Target plug-in. |
|
type |
String |
|
Plug-in type. |
staticgetRegistered(type) → Array
Returns a list of regsitered plug-ins of a certain type.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
type |
String |
|
Plug-in Type. |
- Returns
-
Array
A list of plug-ins.
staticinitPreset(plugin, preset)
Initializes plug-in preset. Merges default preset with user-defined preset. Required in plug-in definition.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
plugin |
|
Target plug-in. |
|
preset |
Object |
|
Preset. |
staticregister(PlugInClass)
Registers the plug-in prototype to WX namespace. Required in plug-in definition.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
PlugInClass |
function() |
|
Class reference (function name) of plug-in. |