Class: FullscreenButtonViewModel

FullscreenButtonViewModel

new FullscreenButtonViewModel(fullscreenElement)

The view model for the FullscreenButton.

Name Type Default Description
fullscreenElement Element | String document.body optional

The element or ID to be placed in full screen mode.

Members

commandCommand

Get the command to switch to full screen mode.

fullscreenElementElement

Retrieve or set HTML elements to enable full screen mode when pressed.

isFullscreenBoolean

Get whether the full screen mode is activated. This attribute is observable.

isFullscreenEnabledBoolean

Get or set whether the full screen feature is enabled. This attribute is observable.

See:
  • Fullscreen.enabled

tooltipString

Get tooltips. This attribute is observable.

Methods

destroy()

Destroy the view model. When the view model is no longer needed, it should be called to thoroughly clean up the view model.

isDestroyed(){Boolean}

Returns:
Type Description
Boolean If the object has been destroyed, it is true; otherwise, it is false.