VueRangedatePicker
Date picker with range selection.
Installation
Usage
Bundler (Webpack, Rollup)
Browser
Available Events
You can catch these below Events to <rangedate-picker @events="events"></rangedate-picker>
template :
-
selected
Description : function that will
$emit
when datepicker set value, this function will get parameter response :
Available Props
You can pass these below props to <rangedate-picker :props="props"></rangedate-picker>
template :
-
configs
Description : -
Type : Object
Default Value :
{}
-
i18n
Description : For text translation (currently: ID/EN)
Type : String
Default Value :
'ID'
-
months
Description : Array of months name
Type : Array
Default Value :
-
shortDays
Description : Array of days name in short
Type : Array
Default Value :
-
captions
Description : Object for text title and OK button
Type : Object
Default Value :
-
format
Description : Date format
Type : String
Default Value :
'DD MMM YYYY'
-
styles
Description : -
Type : Object
Default Value :
-
initRange
Description : -
Type : Object
Default Value :
null
-
startActiveMonth
Description : Month will be shown in first launch
Type : Number
Default Value :
new Date().getMonth()
-
startActiveYear
Description : Year will be shown in first launch
Type : Number
Default Value :
new Date().getFullYear()
-
presetRanges
Description : Set of objects that will shown as quick selection of daterange
Type : Object
Example Object :
Default Value :
-
compact
Description : Set to
'true'
if you want to make datepicker always shown in compact modeType : String
Default Value :
'false'
-
righttoleft
Description : Set to
'true'
if you want datepicker shown align toright
Type : String
Default Value :
'false'
Development
Launch visual tests
Launch Karma with coverage
Build
Bundle the js and css of to the dist
folder:
Publishing
The prepublish
hook will ensure dist files are created before publishing. This
way you don't need to commit them in your repository.