Class: UIWLDateSelector

UIWLDateSelector

Class representing the Date Selector UI component. This class wraps the Flatpickr library to provide a calendar interface that allows users to select dates from a specific list of available dates.

new UIWLDateSelector(dates, selectedDate)

Layers/GoWaterLeakRemoteSensing/clases/UI/components/UIWLDateSelector/index.ts, line 23

Creates an instance of the UIWLDateSelector. Initializes the DOM elements and configures the Flatpickr instance.

Name Type Description
dates Array.<string>

An array of available dates (formatted as strings) that can be selected.

selectedDate string

The initially selected date to display.

Extends

  • undefined

Methods

getId(){UIWLSIds}

Layers/GoWaterLeakRemoteSensing/clases/UI/components/UIWLDateSelector/index.ts, line 90

Retrieves the unique identifier for the Date Selector component.

Returns:
Type Description
UIWLSIds The unique ID enum value.