Class: DisableTopBlocks
Defined in: index.js:23
This plugin changes the logic of the enable/disable context menu item. It is
enabled for all blocks except top-level blocks that have output or
previous connections. In other words, the option is disabled for orphan
blocks. Using this plugin allows users to disable valid non-orphan blocks,
but not re-enable blocks that have been automatically disabled by
disableOrphans.
Properties index
| Property | Description |
|---|---|
| oldPreconditionFn | - |
Methods index
| Method | Description |
|---|---|
| dispose | Turn off the effects of this plugin and restore the initial behavior. This is never required to be called. It is optional in case you need to disable the plugin. |
| init | Modifies the context menu 'disable' option as described above. |
Constructors
Constructor
new DisableTopBlocks(): DisableTopBlocks;
Returns
DisableTopBlocks
Properties
oldPreconditionFn
oldPreconditionFn:
| ((p1, menuOpenEvent) => string)
| ((p1, menuOpenEvent) => string)
| undefined;
Defined in: index.js:30
Methods
dispose()
dispose(): void;
Defined in: index.js:54
Turn off the effects of this plugin and restore the initial behavior. This is never required to be called. It is optional in case you need to disable the plugin.
Returns
void
init()
init(): void;
Defined in: index.js:27
Modifies the context menu 'disable' option as described above.
Returns
void