FullscreenViewModel

AMD: require(["esri/widgets/Fullscreen/FullscreenViewModel"], (FullscreenVM) => { /* code goes here */ });
ESM: import FullscreenVM from "@arcgis/core/widgets/Fullscreen/FullscreenViewModel";
Class: esri/widgets/Fullscreen/FullscreenViewModel
Inheritance: FullscreenViewModel Accessor
Since: ArcGIS API for JavaScript 4.6

Provides the logic for the Fullscreen widget.

See also:

Constructors

new FullscreenViewModel(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Show inherited properties Hide inherited properties
Name Type Summary Class
Stringmore details

The name of the class.

more detailsAccessor
HTMLElementmore details

The HTMLElement to present in fullscreen mode.

more detailsFullscreenViewModel
Stringmore details

The view model's state.

more detailsFullscreenViewModel
MapView|SceneViewmore details

The view associated with the widget instance.

more detailsFullscreenViewModel

Property Details

declaredClass Stringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

element HTMLElement

The HTMLElement to present in fullscreen mode.

state Stringreadonly

The view model's state.

Possible Values:"active"|"ready"|"feature-unsupported"|"disabled"

Default Value:disabled

The view associated with the widget instance.

Method Overview

Name Return Type Summary Class
more details

Enter fullscreen

more detailsFullscreenViewModel
more details

Exit fullscreen

more detailsFullscreenViewModel
more details

Toggle fullscreen

more detailsFullscreenViewModel

Method Details

enter()

Enter fullscreen

exit()

Exit fullscreen

toggle()

Toggle fullscreen

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.