Types
import type { State, Direction, VisibleElements } from "@arcgis/core/widgets/Swipe/types.js";

Type definitions

State

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"ready" | "disabled"

Direction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"vertical" | "horizontal"

VisibleElements

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The visible elements that are displayed within the widget. This provides the ability to turn individual elements of the widget's display on/off.

handle

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the handle from which you drag the widget is visible. Default value is true.

Default value
true

divider

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the divider between the leading and trailing layers is visible. Default value is true.

Default value
true