documentationfor yFiles for HTML 3.0.0.3

Usages of Command

Properties

commandin CanExecuteCommandArgsGets the command which is affected by the query.
commandin ExecuteCommandArgsGets the command that shall be executed.
availableCommandsin GraphInputModeGets a collection of commands that this input mode will handle.
availableCommandsin NavigationInputModeGets the list of commands that are available in this instance.
availableCommandsin OverviewInputModeGets the list of commands that are available in this instance.
installCommandPredicatein OverviewInputModeGets or sets a predicate that is queried by createKeyboardInputMode to determine whether a built-in Command should be installed.
installCommandPredicatein TableEditorInputModeGets or sets a predicate that is queried by onKeyboardInputModeChanged to determine whether a built-in Command should be installed.

Method Return Values

from (Command)in CommandConverts the given argument to an enum constant of this enum type.

Method Parameters

CanExecuteCommandArgs (Command, any)in CanExecuteCommandArgsInitializes a new instance of the CanExecuteCommandArgs class.
from (Command)in CommandConverts the given argument to an enum constant of this enum type.
getName (Command)in CommandReturns the name of the given enum constant.
ExecuteCommandArgs (Command, any)in ExecuteCommandArgsInitializes a new instance of the ExecuteCommandArgs class.
addCommandBinding (Command, function(ExecuteCommandArgs):void, function(CanExecuteCommandArgs):void?)in KeyboardInputModeAdds a Command and associated execution handlers to this instance.
OverviewInputMode ()in OverviewInputModeCreates a new instance.
TableEditorInputMode ()in TableEditorInputModeCreates a new instance.
canExecuteCommand (Command, any?)in CanvasComponentReturns whether the given command can be executed with the given optional parameter.
executeCommand (Command, any?)in CanvasComponentExecutes the given command with the given optional parameter on this CanvasComponent.