new FullscreenButtonViewModel
The view model for FullscreenButton.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
fullscreenElement |
Element |
<optional> |
document.body | The element to be placed into fullscreen mode. |
Members
-
command :Command
-
Gets the Command to toggle fullscreen mode.
-
fullscreenElement :Element
-
Gets or sets the HTML element to place into fullscreen mode when the corresponding button is pressed.
-
isFullscreen :Boolean
-
Gets whether or not fullscreen mode is active. This property is observable.
- Default Value:
- undefined
-
isFullscreenEnabled :Boolean
-
Gets or sets whether or not fullscreen functionality should be enabled. This property is observable.
- Default Value:
- undefined
See:
-
tooltip :String
-
Gets or sets the tooltip. This property is observable.
- Default Value:
- undefined
Methods
-
destroy
-
Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
-
isDestroyed
-
Returns:
Boolean true if the object has been destroyed, false otherwise.