DatePickerViewModel

require(["esri/widgets/support/DatePickerViewModel"], function(DatePickerVM) { /* code goes here */ });
Class: esri/widgets/support/DatePickerViewModel
Inheritance: DatePickerViewModel Accessor
Since: ArcGIS API for JavaScript 4.15

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

See also:

Constructors

new DatePickerViewModel(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
String

The current state of the widget.

more details
more detailsDatePickerViewModel
Date

The selected date.

more details
more detailsDatePickerViewModel

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 MomentElementViewModel 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.

API Reference search results

NameTypeModule
Loading...