new ToggleButtonViewModel(command, options)
A view model which exposes the properties of a toggle button.
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
command |
Command | The command which will be executed when the button is toggled. | ||||||||||||
options |
Object |
optional
Options defining the button's properties.
|
Members
-
command :Command
-
Gets the command which will be executed when the button is toggled.
-
toggled :Boolean
-
Gets or sets whether the button is currently toggled. This property is observable.
-
Default Value:
false
-
tooltip :String
-
Gets or sets the button's tooltip. This property is observable.
-
Default Value:
''