Date Picker State
State holder for the DatePicker.
Manages the state of the year, month, and day pickers. Automatically adjusts the selected day if it exceeds the maximum valid day for the new year/month. Internal picker states are not directly accessible to prevent inconsistent state modifications.
Parameters
initial Year
The initial year to be selected. Must be in 1000..9999.
initial Month
The initial month to be selected. Must be in 1..12.
initial Day
The initial day to be selected. Must be at least 1. Values greater than the maximum valid day for initialYear and initialMonth are clamped to that maximum.
Throws
if initialYear or initialMonth is outside the supported range, or if initialDay is less than 1.
Constructors
Link copied to clipboard
constructor(initialDate: LocalDate)
Creates a DatePickerState from initialDate.
Properties
Functions
Link copied to clipboard
Programmatically selects date.