API
Props, Events & Slots
Props
value
value
Description: The start and end values of the picker.
Default: An object having start
and end
values set to today in YYYY-MM-DD
format if the prop is undefined. If an empty object is passed however, the start
and end
values will be empty strings. If the passed object contains start
and end
values in YYYY-MM-DD
format, the picker is initialised to that range.
disabled
disabled
Description: if true
, disables the input that opens date picker menu.
Default: false
start-label
start-label
Description: The text that shows up in the input placeholder for start date when no range is selected.
Default: 'Start Date'
end-label
end-label
Description: The text that shows up in the input placeholder for end date when no range is selected.
Default: 'End Date'
preset-label
preset-label
Description: The text that shows up as the heading of the list of presets.
Default: 'Presets'
presets
presets
Description: A list of preset objects of the following form.
Default: An empty array.
separator-label
separator-label
Description: The text that shows up in the input placeholder in-between start and end dates.
Default: 'To'
min
min
Default: undefined
max
max
Default: undefined
locale
locale
Default: 'en-us'
no-title
no-title
Default: false
display-format
display-format
Description: The format in which the selected ranges should show up in the input.
Default: YYYY-MM-DD
highlight-color
highlight-color
Default: 'blue lighten-5'
show-reset
show-reset
Description: Shows a reset button in the date range dialog actions beside Cancel. This clicking on it resets the picker as well as it emits empty values for start and end.
Default: true
If you don't want to show a reset button and still wanna reset the picker programmatically, you can get a ref to the component and call the `reset()` method.
next-icon
next-icon
Default: '$vuetify.icons.next'
prev-icon
prev-icon
Default: '$vuetify.icons.prev'
input-props
input-props
Default: {}
menu-props
menu-props
Events
input
input
Description: Emitted every time a new range is applied.
Event Data: An object containing the selected start and end dates in YYYY-MM-DD
format. Example:
menu-closed
menu-closed
Description: When the date picker menu is closed.
Event Data: undefined
Slots
title
title
Description: Content passed to this slot becomes the header of the card in which the date picker opens. If it is present, the provided content is rendered inside <v-card-title></v-card-title>
component.
Last updated
Was this helpful?