V-calendar: Is it possible to have a custom(non-date) placeholder?

Created on 13 Jun 2019  路  2Comments  路  Source: nathanreyes/v-calendar

Is it possible to have a custom (non-date) placeholder on the text box? So for example, instead of it showing a date range or MM/DD/YYYY-MM/DD/YYYY, it would show custom text such as "Departure Window".

A user would then hover over it, the calendar would pop up, and once a date is selected it would show the selected date in the text box.

Sorry if this is a dumb question, I just can't anything in the documentation about custom text-based placeholder.

Most helpful comment

<v-date-picker
 v-model="selectedDate"
 :input-props="{ class: &quot;date-picker&quot;, placeholder: &quot;Departure window&quot;}"
/>

All 2 comments

Yes you can. You can use custom slot and use a custom input element. 'Departure window' can then be a placeholder on the input element.

<v-date-picker
 v-model="selectedDate"
 :input-props="{ class: &quot;date-picker&quot;, placeholder: &quot;Departure window&quot;}"
/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

redraw picture redraw  路  3Comments

neel picture neel  路  3Comments

garygreen picture garygreen  路  3Comments

octaviangrozman picture octaviangrozman  路  4Comments

felixfrtz picture felixfrtz  路  3Comments