Skip to content

we-date-picker

Wrapper for vuepic/vue-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"
/>

<!-- Datetime -->
<we-date-picker
  v-model="datetime"
  placeholder="Select datetime"
  type="datetime"
/>

Props

NameTypeDefaultDescription
typeString
date
Type of picker date, time or datetime
rangeBoolean
false
Enable range selection
teleport[Boolean, String]
true
If true the menu will be placed on body
position[left, center, right]
left
Datepicker menu position
enable-time-pickerBoolean
true
Enable or disable time picker, in the current behavior of the component is set to false if we open a date-picker of type date, for time/datetime set to true
min-date[Date, String]
All dates before the given date will be disabled
max-date[Date, String]
All dates after the given date will be disabled
min-time[Date, String]
Sets the minimal available time to pick
max-time[Date, String]
Sets the maximal available time to pick
show-secondsBoolean
false
Enable minutes in the time/datetime picker

TIP