vue-scroll-range-datepicker
A Vue.js Plugin
2,624
1
| Install | |
|---|---|
npm install vue-scroll-range-datepicker |
|
| Latest Version: | 3.0.7 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jun 11, 2024 |
| Links: | GitHub · npm |
Maintainer: teodor_dre
Vue-Scroll-Range-Datepicker beta
Introduction
This calendar was forked from https://github.com/MikaelEdebro/vue-airbnb-style-datepicker . Thanks Mikael so much for that awesome package. IMPORTANT! At the current time, this datepicker can't be used in production. He is tested, and can not be used in your code. You can use it, on your own risk.
Demo
The demo page is coming soon.
Requirements
- Vue.js
^2.0.0
Installation
npm
$ npm i vue-scroll-range-datepicker
Usage
<script>
// for Vue 2.0
import VueScrollRangeDatepicker from 'vue-scroll-range-datepicker'
import 'vue-scroll-range-datepicker/dist/styles.css'
// see docs for available options
const datepickerOptions = {
sundayFirst: false,
days: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
daysShort: ['Mon', 'Tue', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun'],
monthNames: [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
],
colors: {
selected: '#00a699',
inRange: '#66e2da',
selectedText: '#fff',
text: '#565a5c',
inRangeBorder: '#33dacd',
disabled: '#fff'
},
texts: {
apply: 'apply',
cancel: 'cancel'
};
// make sure we can use it in our components
Vue.use(vueScrollRangeDatepicker, datepickerOptions);
</script>
<template>
<div>
<div class="datepicker-trigger">
<input
type="text"
id="datepicker-trigger"
placeholder="Select dates"
:value="formatDates(dateOne, dateTwo)"
>
<VueScrollRangeDatepicker
:trigger-element-id="'datepicker-trigger'"
:mode="'range'"
:fullscreen-mobile="true"
:date-one="dateOne"
:date-two="dateTwo"
@date-one-selected="val => { dateOne = val }"
@date-two-selected="val => { dateTwo = val }"
/>
</div>
</div>
</template>
API
License
Related Packages
duplicate-dependencies-webpack-plugin
webpack plugin to find duplicated dependencies from your bundle
332,104
6
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.7 | ^2.6.10 | MIT | |
| 3.0.6 | ^2.5.16 | MIT | |
| 3.0.5 | ^2.5.16 | MIT | |
| 3.0.4 | ^2.5.16 | MIT | |
| 3.0.3 | ^2.5.16 | MIT | |
| 3.0.2 | ^2.5.16 | MIT | |
| 3.0.1 | ^2.5.16 | MIT | |
| 3.0.0 | ^2.5.16 | MIT | |
| 2.1.0 | ^2.5.16 | MIT | |
| 2.0.29 | ^2.5.16 | MIT | |
| 2.0.28 | ^2.5.16 | MIT | |
| 2.0.27 | ^2.5.16 | MIT | |
| 2.0.26 | ^2.5.16 | MIT | |
| 2.0.25 | ^2.5.16 | MIT | |
| 2.0.24 | ^2.5.16 | MIT | |
| 2.0.23 | ^2.5.16 | MIT | |
| 2.0.22 | ^2.5.16 | MIT | |
| 2.0.21 | ^2.5.16 | MIT | |
| 2.0.20 | ^2.5.16 | MIT | |
| 2.0.19 | ^2.5.16 | MIT | |
| 2.0.18 | ^2.5.16 | MIT | |
| 2.0.17 | ^2.5.16 | MIT | |
| 2.0.15 | ^2.5.16 | MIT | |
| 2.0.14 | ^2.5.16 | MIT | |
| 2.0.13 | ^2.5.16 | MIT | |
| 2.0.12 | ^2.5.16 | MIT | |
| 2.0.11 | ^2.5.16 | MIT | |
| 2.0.10 | ^2.5.16 | MIT | |
| 2.0.9 | ^2.5.16 | MIT | |
| 2.0.8 | ^2.5.16 | MIT |
Showing the latest 30 of 51. See every release on npm