Appearance
KBE3D / KBCore / Cesium / FullscreenButtonViewModel
类: FullscreenButtonViewModel
The view model for FullscreenButton.
参数
The element or id to be placed into fullscreen mode.
参数
The DOM element or ID that will contain the widget.
属性
isFullscreen
isFullscreen:
boolean
Gets whether or not fullscreen mode is active. This property is observable.
isFullscreenEnabled
isFullscreenEnabled:
boolean
Gets or sets whether or not fullscreen functionality should be enabled. This property is observable.
tooltip
tooltip:
string
Gets the tooltip. This property is observable.
fullscreenElement
fullscreenElement:
Element
Gets or sets the HTML element to place into fullscreen mode when the corresponding button is pressed.
command
command:
Command
Gets the Command to toggle fullscreen mode.
方法
isDestroyed()
isDestroyed():
boolean
返回
boolean
true if the object has been destroyed, false otherwise.
destroy()
destroy():
void
Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回
void
构造函数
构造函数
new FullscreenButtonViewModel(
fullscreenElement?:string|Element,container?:string|Element):FullscreenButtonViewModel
参数
fullscreenElement?
string | Element
container?
string | Element
返回
FullscreenButtonViewModel
