Class: FullscreenButton

FullscreenButton

new FullscreenButton(container, fullscreenElement)

A single button widget used to switch full screen mode.

Name Type Default Description
container Element | String

The DOM element or ID that contains the widget.

fullscreenElement Element | String document.body optional

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

See:
  • Fullscreen
Throws:

There is no element with ID 'container' in the document.

Type
DeveloperError

Members

containerElement

Retrieve the parent container.

Obtain the view model.

Methods

destroy()

Destruction of components.

isDestroyed(){Boolean}

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