Skip to content

Commit

Permalink
add event handler #27
Browse files Browse the repository at this point in the history
  • Loading branch information
weifeiyue committed Feb 7, 2018
1 parent 009985b commit e0dc8b5
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 27 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ The `dist` folder contains `vue-datepicker-local.js` and `vue-datepicker-local.c
| format | to set the date format | String | "YYYY-MM-DD" |
| local | the local of the DatePicker | Object | {<br/>dow: 1, // Monday is the first day of the week<br/>hourTip: '选择小时', // tip of select hour<br/>minuteTip: '选择分钟', // tip of select minute<br/>secondTip: '选择秒数', // tip of select second<br/>yearSuffix: '年', // format of head<br/>monthsHead: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), // months of head<br/>months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), // months of panel<br/>weeks: '一_二_三_四_五_六_日'.split('_'), // weeks<br/> cancelTip: '取消', // default text for cancel button <br />, submitTip: '提交' // default text for submit button <br />} |
| disabledDate | specify the date that cannot be selected | Function | ()=>{return false} |
| showButtons | show Cancel/Submit buttons on daterangepicker only | Boolean | false |
| showButtons | show Cancel/Submit buttons | Boolean | false |

### Events

| Name | Return | About |
|:---------------|:-------------------------------------------------|:-------------------|
| dateRangeSelect| Array of Dates| This function is triggered after user click submit, usefull when need to make something after select time interval|
| Event Name | Description | Parameters |
|:---------------|:-------------------------------------------------|:-------------------------------------|
| confirm |triggers when user confirms | the value component's binding value |

## License
vue-datepicker-local is licensed under [The MIT License](LICENSE).
6 changes: 3 additions & 3 deletions dist/vue-datepicker-local.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e0dc8b5

Please sign in to comment.