FullscreenButtonViewModel - Cesium Documentation

# FullscreenButtonViewModel

#### new FullscreenButtonViewModel(fullscreenElement)

  The view model for `FullscreenButton`.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `fullscreenElement` | Element | String | `document.body` | optional The element or id to be placed into fullscreen mode.

  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 29

### Members

#### command :Command

  Gets the Command to toggle fullscreen mode.
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 122

#### fullscreenElement :Element

  Gets or sets the HTML element to place into fullscreen mode when the corresponding button is pressed.
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 100

#### isFullscreen :Boolean

  Gets whether or not fullscreen mode is active. This property is observable.
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 40

#### isFullscreenEnabled :Boolean

  Gets or sets whether or not fullscreen functionality should be enabled. This property is observable.

  ##### See:

  - Fullscreen.enabled
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 53

#### tooltip :String

  Gets the tooltip. This property is observable.
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 68

### Methods

#### destroy()

  Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 140

#### isDestroyed() → Boolean

  ##### Returns:

  true if the object has been destroyed, false otherwise.
  Source: Widgets/FullscreenButton/FullscreenButtonViewModel.js, line 132