Pluggable
Mixin
Enables using plugins for a class by specifying property plugins as an array of plugin classes. If only a single plugin is used, just give the plugin class instead of an array. This class isn't required for using plugins, just makes it easier. Without mixin you can otherwise use InstancePlugin.initPlugins(this, PluginClass).
new Store({
plugins: [PluginClass, ...]
});
Useful configs
| Config | Description |
|---|---|
| plugins | Array of plugin classes to instantiate on the host |
See also
- InstancePlugin - Base class for plugin implementations
No results
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Specify plugins (an array of classes) in config
Has a corresponding runtime plugins property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of Pluggable class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
initPlugins( )internal
Template method which may be implemented in subclasses to initialize any plugins. This method is empty in the
Pluggablebase class.