Appearance
KBE3D / KBCore / Cesium / ToggleButtonViewModel
类: ToggleButtonViewModel
A view model which exposes the properties of a toggle button.
参数
The command which will be executed when the button is toggled.
参数
Object with the following properties:
参数
A boolean indicating whether the button should be initially toggled.
参数
A string containing the button's tooltip.
属性
toggled
toggled:
boolean
Gets or sets whether the button is currently toggled. This property is observable.
tooltip
tooltip:
string
Gets or sets the button's tooltip. This property is observable.
command
command:
Command
Gets the command which will be executed when the button is toggled.
构造函数
构造函数
new ToggleButtonViewModel(
command:Command,options?: {toggled?:boolean;tooltip?:string; }):ToggleButtonViewModel
参数
command
options?
toggled?
boolean
tooltip?
string
返回
ToggleButtonViewModel
