ToggleButtonViewModel

new Cesium.ToggleButtonViewModel(command, options)

A view model which exposes the properties of a toggle button.
参数名称 类型 描述信息
command Command The command which will be executed when the button is toggled.
options object 可选 Object with the following properties:
参数名称 类型 默认值 描述信息
toggled boolean false 可选 A boolean indicating whether the button should be initially toggled.
tooltip string '' 可选 A string containing the button's tooltip.

成员(属性)

Gets the command which will be executed when the button is toggled.
Gets or sets whether the button is currently toggled. This property is observable.
默认值: false
Gets or sets the button's tooltip. This property is observable.
默认值: ''