Skip to content

Commit 80dd05b

Browse files
authored
Merge pull request #21 from mazipan/master
Add some description in props table
2 parents ead7f61 + 00388c6 commit 80dd05b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VueRangedatePicker
22

3-
[![npm](https://img.shields.io/npm/v/vue-rangedate-picker.svg)](https://www.npmjs.com/package/vue-rangedate-picker) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/) [![Travis](https://img.shields.io/travis/bliblidotcom/vue-rangedate-picker.svg)](https://travis-ci.org/bliblidotcom/vue-rangedate-picker)
3+
[![npm](https://img.shields.io/npm/v/vue-rangedate-picker.svg)](https://www.npmjs.com/package/vue-rangedate-picker) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/) [![travis](https://img.shields.io/travis/bliblidotcom/vue-rangedate-picker.svg)](https://travis-ci.org/bliblidotcom/vue-rangedate-picker) [![codecov](https://codecov.io/gh/bliblidotcom/vue-rangedate-picker/branch/master/graph/badge.svg)](https://codecov.io/gh/bliblidotcom/vue-rangedate-picker)
44

55
> Date picker with range selection
66
@@ -45,19 +45,19 @@ Vue.use(VueRangedatePicker)
4545

4646
| Props Name | Type | Default Value | Description |
4747
|--------------------------- |------------------|--------------- | ------------------------------------ |
48-
| configs | Object | - | - |
49-
| i18n | String | - | - |
50-
| months | Array | - | - |
51-
| shortDays | Array | - | - |
52-
| captions | Object | - | - |
53-
| format | String | 'DD MMM YYYY' | - |
54-
| styles | Object | - | - |
48+
| configs | Object | {} | - |
49+
| i18n | String | 'ID' | For text translation (currently: ID/EN) |
50+
| months | Array | ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'] | Array months name |
51+
| shortDays | Array | ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'] | Array date name in short text |
52+
| captions | Object | `{'title': 'Choose Dates','ok_button': 'Apply'}` | Caption text like title and apply button |
53+
| format | String | 'DD MMM YYYY' | Date format |
54+
| styles | Object | `{daysWeeks: 'calendar_weeks', days: 'calendar_days', daysSelected: 'calendar_days_selected', daysInRange: 'calendar_days_in-range', firstDate: 'calendar_month_left', secondDate: 'calendar_month_right', presetRanges: 'calendar_preset-ranges'}` | Object set that contains classes use in calendar |
5555
| initRange | Object | - | - |
5656
| startActiveMonth | Number | `new Date().getMonth()` | - |
5757
| startActiveYear | Number | `new Date().getFullYear()` | - |
5858
| presetRanges | Object | - | - |
59-
| compact | String | 'false' | - |
60-
| righttoleft | String | 'false' | - |
59+
| compact | String | 'false' | For set date to always shown |
60+
| righttoleft | String | 'false' | For set date box align from right |
6161

6262

6363
## Development

0 commit comments

Comments
 (0)