new PluginsManager(parent)
| Name | Type | Description |
|---|---|---|
parent |
object | Instance of the Tag used |
Methods
-
exec(pluginName, method, args, callback)
-
Execute a plugin method.
Name Type Description pluginNamestring Plugin (name) that you want to use methodstring Plugin's method that you want to use argsArray Arguments to the method you want to use callbackfunction Method which be triggered once the plugin's method has finished, it will take one argument which is what the plugin's method returned -
init()
-
Create an instance of each plugin already in the prototype. Essential for the inclusion of the plugins already loaded.
-
isExecWaitingLazyloading(){number}
-
Indicate that at least one method is waiting the end of its plugin's lazyloading.
-
isLazyloading(name){boolean}
-
Check if some plugin is loading.
Name Type Description namestring Specific plugin's name Returns:
True if one or the specific plugin is loading
-
load(name, Plugin){object}
-
Load a plugin.
Name Type Description namestring Plugin's name Pluginfunction Plugin's code Returns:
Instance of the Tag used
-
unload(name){object}
-
Unload a plugin.
Name Type Description namestring Plugin's name Returns:
Instance of the Tag used
-
waitForDependencies(dependencies, callback)
-
Execute a callback only when all required plugins are loaded.
Name Type Description dependenciesArray Names of the required plugins callbackfunction Method which be triggered once the dependencies will be loaded
