ToggleButtonViewModel

open external class ToggleButtonViewModel(var command: Command)(source)

A view model which exposes the properties of a toggle button.

See also

Constructors

Link copied to clipboard
constructor(command: Command)

Properties

Link copied to clipboard
external var command: Command

The command which will be executed when the button is toggled.

Link copied to clipboard
external var toggled: Boolean

Gets or sets whether the button is currently toggled. This property is observable.

Link copied to clipboard
external var tooltip: String

Gets or sets the button's tooltip. This property is observable.