视图模型为 The view model for
FullscreenButton.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
fullscreenElement |
Element | string |
document.body
|
可选 optional 要置于全屏模式的元素或 id。 The element or id to be placed into fullscreen mode. |
container |
Element | string | 可选 optional 将包含小部件的 DOM 元素或 ID。 The DOM element or ID that will contain the widget. |
成员 Members
获取切换全屏模式的命令。 Gets the Command to toggle fullscreen mode.
获取或设置按下相应按钮时要置于全屏模式的 HTML 元素。 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.
另见: See:
获取工具提示。这个性质是可以观察到的。 Gets the tooltip. This property is observable.
方法 Methods
破坏视图模型。当不再需要视图模型时,应该调用它来正确清理视图模型。 Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
