Defines the command to execute by the Viewer.

interface ICommand {
    description?: ICommandDescription;
    handler: ICommandHandler;
    id: string;
    thisArg?: any;
}

Properties

description?: ICommandDescription

Command description.

Handler function.

id: string

Command ID.

thisArg?: any

The this context used when invoking the handler function.