Class: Plugins

Plugins

Provides access to the metadata of the available plugins.


Each plugin that is available appears as a property of Plugins, named after the plugin. For example, the 'ui' plugin metadata can be accessed via $wat.plugins.ui.

See:

Methods


pluginList()

Returns a list of the available plugin names. The metadata for a plugin can be accessed as a property with the same name as the plugin. The plugin metadata is type wat.Plugin when access this way.

Since:
  • 1.0
Returns:
Type
Array.<string>
Examples
console.log('UI version is ' + $wat.plugins.ui.version.str);
for (plName in $wat.plugins.pluginList())
{
   console.log('Plugin ' + plName + ' version is ' + $wat.plugins[plName].version.str);
}