Skip to content
import FullscreenViewModel from "@arcgis/core/widgets/Fullscreen/FullscreenViewModel.js";
Inheritance:
FullscreenViewModelAccessor
Since
ArcGIS Maps SDK for JavaScript 4.6

Provides the logic for the Fullscreen widget.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

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

element

autocast Property
Type
HTMLElement | null

The HTMLElement to present in fullscreen mode.

state

readonly Property
Type
FullscreenViewModelState

The view model's state.

Default value
"disabled"

view

Property
Type
MapViewOrSceneView | null | undefined

The view associated with the widget instance.

Methods

MethodSignatureClass
enter(): void
exit(): void
toggle(): void

enter

Method
Signature
enter (): void

Enter fullscreen

Returns
void

exit

Method
Signature
exit (): void

Exit fullscreen

Returns
void

toggle

Method
Signature
toggle (): void

Toggle fullscreen

Returns
void

Type definitions

FullscreenViewModelState

Type definition
Type
"active" | "disabled" | "feature-unsupported" | "ready"