ToggleButtonViewModel

new Cesium.ToggleButtonViewModel(command, options)

一个视图模型,用于暴露切换按钮的属性。
Name Type Description
command Command 当按钮被切换时将执行的命令。
options object optional Object with the following properties:
Name Type Default Description
toggled boolean false optional 一个布尔值,指示按钮是否应初始处于切换状态。
tooltip string '' optional 包含按钮工具提示的字符串。

Members

获取当按钮被切换时将执行的命令。
获取或设置按钮当前是否处于切换状态。此属性是可观察的。
Default Value: false
获取或设置按钮的工具提示。此属性是可观察的。
Default Value: ''
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。