Class: FullscreenButtonViewModel

FullscreenButtonViewModel

new FullscreenButtonViewModel(fullscreenElementopt)

The view model for FullscreenButton.
Parameters:
Name Type Attributes Default Description
fullscreenElement Element | String <optional>
document.body The element or id to be placed into fullscreen mode.
Source:

Members

command :Command

Gets the Command to toggle fullscreen mode.
Type:
Source:

fullscreenElement :Element

Gets or sets the HTML element to place into fullscreen mode when the corresponding button is pressed.
Type:
  • Element
Source:

isFullscreen :Boolean

Gets whether or not fullscreen mode is active. This property is observable.
Type:
  • Boolean
Source:

isFullscreenEnabled :Boolean

Gets or sets whether or not fullscreen functionality should be enabled. This property is observable.
Type:
  • Boolean
Source:
See:

tooltip :String

Gets the tooltip. This property is observable.
Type:
  • String
Source:

Methods

destroy()

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

isDestroyed() → {Boolean}

Source:
Returns:
true if the object has been destroyed, false otherwise.
Type
Boolean