Open JessieVela opened 4 months ago
You can use header
slot to override that text. Not sure if this is the best option (and if the following is the best way to use it), but it works:
<v-date-picker multiple="range">
<template v-slot:header>
<div class="v-date-picker-header">
<div class="v-date-picker-header__content">Custom text</div>
</div>
</template>
</v-date-picker>
But of course, this replaces header unconditionally, i.e. you need to display selected date or range manually if you still want it to be there.
Thank you that will work for me. Playground
Environment
Vuetify Version: 3.5.6 Vue Version: 3.4.21 Browsers: Chrome 121.0.0.0 OS: Windows 10
Steps to reproduce
v-date-picker
and set a value fordisplay-value
.display-value
is not showing.Expected Behavior
Expected for
display-value
to override the display ofv-date-picker
.Actual Behavior
Displays the date selected. If multiple prop is set to range then the total of dates are show.
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
In vuetify 2 we were able to use
selected-items-text
to display a different date value.