Components
BaseDatePicker
An inline calendar in the app’s card style, with limits and allowed dates.
components/ui/inputs/BaseDatePicker.vue
View in the demo
Example
Only weekdays from today on can be picked.
M
T
W
T
F
S
S
API
It also accepts every prop, slot and event of v-date-picker, which it passes through.
Props
Name | Type | Default | Description |
|---|---|---|---|
title | string | — | A heading above the calendar. |
min | string | Date | — | The earliest selectable date. |
max | string | Date | — | The latest selectable date. |
allowed-dates | ((date: unknown) => boolean) | — | A function that returns false for dates that cannot be picked. |
first-day-of-week | number | 1 | 0 for Sunday, 1 for Monday. |
v-model | Date | null | null | The selected date. |
Events
Name | Payload | Description |
|---|---|---|
@update:modelValue | [value: Date | null] | — |