MoveCells
Members
PLUGIN_KEY
MoveCells.PLUGIN_KEY ⇒ string
The plugin’s registration key (the name of the setting that enables it).
PLUGIN_PRIORITY
MoveCells.PLUGIN_PRIORITY ⇒ number
The plugin’s initialization priority within the plugin registry.
SETTING_KEYS
MoveCells.SETTING_KEYS ⇒ Array<string>
The settings whose change through updateSettings triggers updatePlugin.
Methods
destroy
moveCells.destroy()
Destroys the plugin and removes any active drag preview.
disablePlugin
moveCells.disablePlugin()
Disables selection move interactions and cancels an active drag.
enablePlugin
moveCells.enablePlugin()
Enables selection move interactions.
isEnabled
moveCells.isEnabled() ⇒ boolean
Checks whether the plugin is enabled in the Handsontable settings.
moveCellRange
moveCells.moveCellRange(sourceRange, targetTopLeft, [isCopy]) ⇒ boolean
Moves or copies a visual cell range.
| Param | Type | Default | Description |
|---|---|---|---|
| sourceRange | CellRange | The source range. | |
| targetTopLeft | CellCoords | The destination top-left cell. | |
| [isCopy] | boolean | false | optional Whether to keep the source values. |
Returns: boolean - Whether the operation completed. Returns false when the target equals the
source top-left (a no-op — no hook fires and no undo entry is recorded), when the range spans
more than CELLS_LIMIT cells, or when any other guard vetoes the operation.
updatePlugin
moveCells.updatePlugin()
Updates the plugin after its setting changes.