Appearance
DatePickerWindow
Usage
The Date Picker Window is a special component that will mostly be used in a popover from the Date Picker component, but it can be used standalone if required.
May2025
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| 28 | 29 | 30 | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | 1 |
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
May2025
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
| 28 | 29 | 30 | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | 1 |
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Selected date:
Props
ComponentSkin skinIndicates which skin should be used for the component Default value: ComponentSkin.DESIGN_SYSTEMDate modelValueTwo way binding of the component. It will work in a single selection date pickerboolean isRangeFlag to indicate if the date picker should be a range selection or not Default value: falseDate startTwo way binding of the start date of the range. It will work in a range selection date picker Default value: undefinedDate endTwo way binding of the end date of the range. It will work in a range selection date picker Default value: undefinedstring[] monthsNamesThe names of the months to be used. If not provided, English names will be used Default value: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]string todayTextThe text to be used for the today button. If not provided, English text will be used Default value: Todaystring[] weekDaysNamesThe names of the week days to be used. If not provided, English names will be used Default value: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ]number firstDayOfWeekThe first day of the week. If not provided, Monday will be used. Goes from 0 to 6. Default value: 1(item: Day | Month | number) => boolean isDisabledA function that will be called for each day to check if it should be disabled or not Default value: undefinedCalendarViewTypes selectTypeIndicates which view should be shown when the date picker is opened Default value: CalendarViewTypes.DAYTIP
In CalendarviewTypes.DAY view, the date picker will show the days of the month.
In CalendarviewTypes.MONTH view, the date picker will show the months of the year.
In CalendarviewTypes.YEAR view, the date picker will show the years of the decade.
TIP
In single date selection mode, the selected time will be 00:00:00 UTC.
In range mode, the start time will be 00:00:00 UTC and the end time will be 00:00:00 UTC of the selected date.
Type declarations
Day
ts
export interface Day {
number: number;
weekDay: number;
month: number;
year: number;
isDisabled?: boolean;
}Month
ts
export interface Month {
number: number;
year: number;
}CalendarViewTypes
ts
export enum CalendarViewTypes {
DAY = 'day',
MONTH = 'month',
YEAR = 'year',
}ComponentSkin
ts
export enum ComponentSkin {
PANDA = 'panda',
DESIGN_SYSTEM = 'ds',
}