new FullscreenButtonViewModel
The ViewModel for FullscreenButton.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
fullscreenElement |
Element |
<optional> |
document.body | The element to be placed into fullscreen mode. |
Members
-
command :Command
-
The command for toggling fullscreen mode.
-
fullscreenElement :Observable
-
The HTML element to place into fullscreen mode when the corresponding button is pressed. By default, the entire page will enter fullscreen. By specifying another container, only that container will be in fullscreen.
-
isFullscreenEnabled :Observable
-
Indicates if fullscreen functionality is possible.
-
toggled :Observable
-
Indicates if fullscreen functionality is currently toggled.
-
tooltip :Observable
-
The current button tooltip.
Methods
-
destroy
-
Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.