Date Picker
The VDatePicker component displays a calendar interface for date selection with various modes and customization options.Usage
API
Props
The selected date(s). Type depends on the
multiple prop.Enables multiple date selection. Use
'range' for date ranges or a number for a specific count.Title displayed in the picker header.
Header text displayed above the calendar.
Color of the header section.
Format for displaying the selected date in the header.
Current view mode. Options:
month, months, year.Displays week numbers.
Shows dates from adjacent months.
How to calculate weeks. Options:
dynamic, static.Minimum selectable date.
Maximum selectable date.
Function or array to determine which dates are selectable.
Disables the date picker.
Makes the date picker read-only.
Displays the picker in landscape orientation.
Events
Emitted when the selected date changes.
Emitted when the displayed month changes.
Emitted when the displayed year changes.
Emitted when the view mode changes.
Slots
title
Customize the title section.
Customize the header display.
Customize individual day cells.
Customize month cells in month selection view.
Customize year cells in year selection view.