FullscreenButtonViewModel

new Cesium.FullscreenButtonViewModel(fullscreenElement, container)

The view model for FullscreenButton.
参数名称 类型 默认值 描述信息
fullscreenElement Element | string document.body 可选 The element or id to be placed into fullscreen mode.
container Element | string 可选 The DOM element or ID that will contain the widget.

成员(属性)

Gets the Command to toggle fullscreen mode.
Gets or sets the HTML element to place into fullscreen mode when the corresponding button is pressed.
Gets whether or not fullscreen mode is active. This property is observable.
Gets or sets whether or not fullscreen functionality should be enabled. This property is observable.
参考:
Gets the tooltip. This property is observable.

方法

Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回值:
true if the object has been destroyed, false otherwise.