Command

interface Command(source)

Represents a reference to a command. Provides a title which will be used to represent a command in the UI and, optionally, an array of arguments which will be passed to the command handler function when invoked.

Online Documentation

Properties

Link copied to clipboard
abstract var arguments: ReadonlyArray<JsAny?>?

Arguments that the command handler should be invoked with.

Link copied to clipboard
abstract var command: String

The identifier of the actual command handler.

Link copied to clipboard
abstract var title: String

Title of the command, like save.

Link copied to clipboard
abstract var tooltip: String?

A tooltip for the command, when represented in the UI.