Skip to content

we-date-picker

Wrapper for vue2-datepicker with Vuetify style

Usage

Simple datepicker

html
<!-- Date -->
<we-date-picker
  v-model="date"
  placeholder="Select date"
  type="date"
/>

<!-- Time -->
<we-date-picker
  v-model="time"
  placeholder="Select time"
  type="time"
  :minute-step="15"
  with-seconds
/>

<!-- Datetime -->
<we-date-picker
  v-model="datetime"
  placeholder="Select time"
  type="datetime"
  :minute-step="15"
  with-seconds
/>

Props

NameTypeDefaultDescription
typeString
"date"
Type of picker date, time or datetime
rangeBoolean
false
Enable range selection
display-formatString
{
  "date": "dd/MM/yyyy",
  "time": "HH:mm",
  "datetime": "dd/MM/yyyy HH:mm"
}
Format of the displayed date

TIP