MCPcopy Create free account
hub / github.com/chartjs/Chart.js / isPluginEnabled

Method isPluginEnabled

src/core/core.controller.js:1223–1225  ·  view source on GitHub ↗

* Check if a plugin with the specific ID is registered and enabled * @param {string} pluginId - The ID of the plugin of which to check if it is enabled * @returns {boolean}

(pluginId)

Source from the content-addressed store, hash-verified

1221 * @returns {boolean}
1222 */
1223 isPluginEnabled(pluginId) {
1224 return this._plugins._cache.filter(p => p.plugin.id === pluginId).length === 1;
1225 }
1226
1227 /**
1228 * @private

Callers 1

initializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected