vue-daterange-picker
vue-daterange-picker
A vue component for picking range of dates.
Install
npm install vue-daterange-picker --save
import in project:
import VueDaterangePicker from 'vue-daterange-picker';
components: {
VueDaterangePicker
}
Dependencies:
vue-clickaway: npm install vue-clickaway --save
momentJS: npm install moment --save
Props:
Component expects properties:
start-date: String
end-date: String
format 'MM/DD/YY'. And then it will initiate callendar between these dates.
double: Boolean
display single callendar or double callendar.
format: String
changes the format of the inputs (default: 'MM/DD/YYYY')
title-format: String
changes the format of the calendar months (default: 'MMMM Y')
start-place-holder: String
changes the text in the start Date placeholder.
example: start-place-holder="01/01/2018"
end-place-holder: String
changes the text in the end Date placeholder.
example: end-place-holder="01/01/2018"
example:
When click away or hit escape key the component fires event 'get-dates' that contains an object with startDate and endDate keys holding values of start date and end date in utc format.
<vue-daterange-picker
double
start-date="06/10/2017"
end-date="06/10/2018"
start-place-holders="12/01/2017"
end-place-holders="04/01/2018"
@get-dates="getDates"/>
Related Packages
Vuetify Date Range Picker with compare period and presets, optimized for best mo...
A vue component of datepicker, includes DatePicker, DateRangePicker, DatetimePic...
Date range picker for Vue 1.x, based on bootstrap-daterangepicker
Date range picker for Vue 2.x, based on bootstrap-daterangepicker
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.2.5 | |||
| 1.2.4 | |||
| 1.2.3 | |||
| 1.2.2 | |||
| 1.2.1 | |||
| 1.2.0 | |||
| 1.1.9 | |||
| 1.1.8 | |||
| 1.1.7 | |||
| 1.1.6 | |||
| 1.1.5 | |||
| 1.1.4 | |||
| 1.1.3 | |||
| 1.1.2 | |||
| 1.1.1 | |||
| 1.1.0 | |||
| 1.0.9 | |||
| 1.0.8 | |||
| 1.0.7 | |||
| 1.0.6 | |||
| 1.0.5 | |||
| 1.0.4 | |||
| 1.0.3 | ^2.3.3 | ||
| 1.0.2 | ^2.3.3 | ||
| 1.0.1 | ^2.3.3 | ||
| 1.0.0 | ^2.3.3 |