FullscreenButtonViewModel

FullscreenButtonViewModel

new

The ViewModel for FullscreenButton.

Parameters:
Name Type Argument Default Description
fullscreenElement Element <optional>
document.body The element to be placed into fullscreen mode.
Source:

Members

:Command

The command for toggling fullscreen mode.

: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.

:Observable

Indicates if fullscreen functionality is possible.
See:

:Observable

Indicates if fullscreen functionality is currently toggled.

:Observable

The current button tooltip.

Methods

Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.