Types
import type { Layout, AnimateEvent, ValuePickerViewModelEvents } from "@arcgis/core/widgets/ValuePicker/types.js";

Type definitions

Layout

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The layout of the ValuePicker widget.

Type
"horizontal" | "vertical"

AnimateEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The animate event of the ValuePicker widget.

ValuePickerViewModelEvents

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The events emitted by the ValuePicker widget.

animate

Property
Type
AnimateEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when the ValuePicker is playing at an interval defined by ValuePicker.playRate.

Example
const valuePicker = new ValuePicker();
valuePicker.on("animate", () => {
console.log("the animation timer is fired");
});

next

Property
Type
void
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when the ValuePicker's next button is clicked.

Example
const valuePicker = new ValuePicker();
valuePicker.on("next", () => {
console.log("user clicked the next button");
});

pause

Property
Type
void
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when the ValuePicker's pause button is clicked.

Example
const valuePicker = new ValuePicker();
valuePicker.on("pause", () => {
console.log("user clicked the pause button");
});

play

Property
Type
void
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when the ValuePicker's play button is clicked.

Example
const valuePicker = new ValuePicker();
valuePicker.on("play", () => {
console.log("user clicked the play button");
});

previous

Property
Type
void
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when the ValuePicker's previous button is clicked.

Example
const valuePicker = new ValuePicker();
valuePicker.on("previous", () => {
console.log("user clicked the previous button");
});