Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 880aa6a

Browse files
committed
Added component examples
1 parent 3ddac56 commit 880aa6a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)
55

66

7-
> Date picker with range selection
7+
> Vue Date picker with range selection
88
99
## Demo
1010

@@ -72,6 +72,8 @@ You can pass these below props to `<vue-rangedate-picker :props="props"></vue-ra
7272

7373
*Default Value* : `'EN'`
7474

75+
*Component Example* : `<vue-rangedate-picker i18n="ID" />`
76+
7577
+ **months**
7678

7779
*Description* : Array of months name
@@ -84,6 +86,8 @@ You can pass these below props to `<vue-rangedate-picker :props="props"></vue-ra
8486
ID: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember']
8587
```
8688

89+
*Component Example* : `<vue-rangedate-picker :months="['Enero', 'Febrero', 'Marzo', ...]" />`
90+
8791
+ **shortDays**
8892

8993
*Description* : Array of days name in short
@@ -118,6 +122,8 @@ You can pass these below props to `<vue-rangedate-picker :props="props"></vue-ra
118122

119123
*Default Value* : `'DD MMM YYYY'`
120124

125+
*Component Example* : `<vue-rangedate-picker months="YYYY-MM-DD" />`
126+
121127
+ **styles**
122128

123129
*Description* : -
@@ -153,6 +159,19 @@ You can pass these below props to `<vue-rangedate-picker :props="props"></vue-ra
153159
}
154160
```
155161

162+
163+
*Component Example* : `<vue-rangedate-picker :initRange="initialRange" />`
164+
```
165+
// initial 7 day range
166+
const n = new Date();
167+
const start = new Date(n.getFullYear(), n.getMonth(), n.getDate() - 5);
168+
const end = new Date(n.getFullYear(), n.getMonth(), n.getDate() + 1);
169+
{
170+
start: start,
171+
end: end
172+
}
173+
```
174+
156175
+ **startActiveMonth**
157176

158177
*Description* : Month will be shown in first launch

0 commit comments

Comments
 (0)