MCPcopy
hub / github.com/GrapesJS/grapesjs / isActive

Method isActive

packages/core/src/commands/index.ts:431–433  ·  view source on GitHub ↗

* Check if the command is active. You activate commands with `run` * and disable them with `stop`. If the command was created without `stop` * method it can't be registered as active * @param {String} id Command id * @return {Boolean} * @example * const cId = 'some-command'; *

(id: string)

Source from the content-addressed store, hash-verified

429 * // -> false
430 */
431 isActive(id: string) {
432 return this.getActive().hasOwnProperty(id);
433 }
434
435 /**
436 * Get all active commands

Callers 9

removeMethod · 0.95
runCommandMethod · 0.95
stopCommandMethod · 0.95
index.tsFile · 0.80
index.tsFile · 0.80
toggleVisMethod · 0.80
_upFrameMethod · 0.80
runMethod · 0.80
isOpenMethod · 0.80

Calls 1

getActiveMethod · 0.95

Tested by

no test coverage detected