Interface: Plugin
Vizzu plugin interface.
Properties
api?
optionalapi:PluginApi
Any parameter or method the Plugin exposes for the user.
enable()?
optionalenable: (enabled) =>void
Method called by Vizzu indicating for the plugin that it got switched on/off. If switched off, its event listeners gets removed and its hooks won't be called.
Parameters
enabled
boolean
Returns
void
hooks?
optionalhooks:PluginHooks\<Hooks>
Hooks the plugin implemenst. They work only if the plugin is enabled.
listeners?
optionallisteners:PluginListeners
Event listeners the plugin implements. They work only if the plugin is enabled.
meta?
optionalmeta:PluginMeta
Metainfo about the plugin.
register()?
optionalregister: (ctx) =>void
Register called when the plugin added to vizzu, receiving the Vizzu instance.
Parameters
ctx
Returns
void
unregister()?
optionalunregister: (ctx) =>void
Unregister is called when detach() called on the Vizzu instance.
Parameters
ctx
Returns
void