Command.setCommand

Add a command to a widget.

mixintemplate Command()
setCommand
(
this T
)

Parameters

callback CommandCallback

The delegate callback to execute when invoking the command.

Return Value

Type: auto

This widget to aid method chaining.

Callback Arguments

These are the fields within the callback's CommandArgs parameter which are populated by this method when the callback is executed.

$(PARAM_TABLE $(PARAM_ROW CommandArgs.element, The element that executed the callback.) $(PARAM_ROW CommandArgs.callback, The callback which was executed.) )

See Also

Meta