BasePlugin
Members
DEFAULT_SETTINGS
BasePlugin.DEFAULT_SETTINGS ⇒ object
The DEFAULT_SETTINGS getter defines the plugin default settings.
enabled
basePlugin.enabled : boolean
eventManager
basePlugin.eventManager : EventManager
The instance of the EventManager class.
initialized
basePlugin.initialized : boolean
isPluginsReady
basePlugin.isPluginsReady : boolean
pluginName
basePlugin.pluginName : string
pluginsInitializedCallbacks
basePlugin.pluginsInitializedCallbacks : Array<function()>
SETTING_KEYS
BasePlugin.SETTING_KEYS ⇒ Array<string> | boolean
The SETTING_KEYS getter defines the keys that, when present in the config object, trigger the plugin update after the updateSettings calls.
- When it returns true, the plugin updates after all updateSettings calls, regardless of the contents of the config object.
- When it returns false, the plugin never updates on updateSettings calls.
SETTINGS_VALIDATORS
BasePlugin.SETTINGS_VALIDATORS : function | object | null
Validators for plugin settings.
Methods
callOnPluginsReady
basePlugin.callOnPluginsReady(callback)
Register function which will be immediately called after all plugins initialized.
| Param | Type | Description |
|---|---|---|
| callback | function | The listener function to add. |
clearHooks
basePlugin.clearHooks()
Clear all hooks.
destroy
basePlugin.destroy()
Destroy plugin.
disablePlugin
basePlugin.disablePlugin()
Disable plugin for this Handsontable instance.
enablePlugin
basePlugin.enablePlugin()
Enable plugin for this Handsontable instance.
getSetting
basePlugin.getSetting([settingName]) ⇒ T
Gets the plugin settings. If there is no setting under the provided key, it returns the default setting provided by the DEFAULT_SETTINGS static property of the class.
| Param | Type | Description |
|---|---|---|
| [settingName] | string | optional The setting name. If the setting name is not provided, it returns the whole plugin’s settings object. |
isHardConflictBlocked
basePlugin.isHardConflictBlocked() ⇒ boolean
Whether this plugin is blocked by a registered hard conflict (another top-level setting is truthy; for example nestedRows blocks pagination, or manualRowMove blocks dataProvider). Emits a console warning when blocked.
Returns: boolean - true if the plugin must not enable.
removeHooks
basePlugin.removeHooks(name)
Remove all hooks listeners by hook name.
| Param | Type | Description |
|---|---|---|
| name | string | The hook name. |
updatePluginSettings
basePlugin.updatePluginSettings(newSettings) ⇒ object
Update plugin settings.
| Param | Type | Description |
|---|---|---|
| newSettings | * | New settings. |
Returns: object - Updated settings object.