FullscreenViewModel

require(["esri/widgets/Fullscreen/FullscreenViewModel"], function(FullscreenVM) { /* code goes here */ });
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.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
HTMLElement

The HTMLElement to present in fullscreen mode.

more details
more detailsFullscreenViewModel
String

The view model's state.

more details
more detailsFullscreenViewModel
MapView | SceneView

The view associated with the widget instance.

more details
more detailsFullscreenViewModel

Property Details

declaredClassStringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

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

The HTMLElement to present in fullscreen mode.

stateStringreadonly

The view model's state.

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

Default Value:disabled

The view associated with the widget instance.

Method Overview

NameReturn TypeSummaryClass

Enter fullscreen

more details
more detailsFullscreenViewModel

Exit fullscreen

more details
more detailsFullscreenViewModel

Toggle fullscreen

more details
more detailsFullscreenViewModel

Method Details

enter()

Enter fullscreen

exit()

Exit fullscreen

toggle()

Toggle fullscreen

API Reference search results

NameTypeModule
Loading...