@JsType(isNative=true,
namespace="Cesium",
name="ToggleButtonViewModel")
public class ToggleButtonViewModel
extends Object
| Modifier and Type | Field and Description |
|---|---|
Command |
command
Gets the command which will be executed when the button is toggled.
|
boolean |
toggled
Gets or sets whether the button is currently toggled.
|
String |
tooltip
Gets or sets the button's tooltip.
|
| Constructor and Description |
|---|
ToggleButtonViewModel(Command command)
A view model which exposes the properties of a toggle button.
|
ToggleButtonViewModel(Command command,
ToggleButtonViewModelOptions options)
A view model which exposes the properties of a toggle button.
|
public Command command
public boolean toggled
public String tooltip
@JSConstructor public ToggleButtonViewModel(Command command)
command - The command which will be executed when the button is toggled.@JSConstructor public ToggleButtonViewModel(Command command, ToggleButtonViewModelOptions options)
command - The command which will be executed when the button is toggled.options - options objectCopyright © 2019. All rights reserved.