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

Provides the logic for the TimePicker widget. This helper widget is utilized by the Directions widget.

See also:


new TimePickerViewModel(properties)
properties Object

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
Stringmore details

The current state of the widget.

more detailsTimePickerViewModel
Datemore details

The selected date.

more detailsTimePickerViewModel

Property Details

declaredClass Stringreadonly inherited

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

state String

The current state of the widget.

For DateTimeElementViewModel the state is always "ready".

Default Value:ready
value Date

The selected date. If not provided, it is set to the current day of the year.

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