handsontable/src/plugins/contextMenu/commandExecutor.js, line 4
Command executor for ContextMenu.
Methods
-
handsontable/src/plugins/contextMenu/commandExecutor.js, line 43
execute(commandName, params)
-
Execute command by its name.
Parameters:
Name Type Description commandName
String Command id.
params
* Arguments passed to command task.
-
handsontable/src/plugins/contextMenu/commandExecutor.js, line 24
registerCommand(name, commandDescriptor)
-
Register command.
Parameters:
Name Type Description name
String Command name.
commandDescriptor
Object Command descriptor object with properties like
key
(command id),
callback
(task to execute),name
(command name),disabled
(command availability). -
handsontable/src/plugins/contextMenu/commandExecutor.js, line 33
setCommonCallback(callback)
-
Set common callback which will be trigger on every executed command.
Parameters:
Name Type Description callback
function Function which will be fired on every command execute.