[]
        
(Showing Draft Content)

ICommand Interface

ICommand Interface

Interface implemented by command objects.

For details, please see the Menu.command property.

Heirarchy

  • ICommand

Methods

Optional canExecuteCommand

  • canExecuteCommand(parameter: any): boolean
  • Returns true if the command can be executed in the current app state.

    If this method returns false, the corresponding menu option is disabled.

    Parameters

    • parameter: any

    Returns boolean

executeCommand

  • executeCommand(parameter: any): void
  • Executes the command with a given parameter.

    The parameter passed to the command is defined by the value of the Menu.commandParameterPath property of the current item. If the Menu.commandParameterPath property is not specified, the parameter passed is the item itself.

    Parameters

    • parameter: any

    Returns void