vue-bulma / datepicker

Datepicker Component for Vue Bulma
MIT License
115 stars 56 forks source link

Proposal : Include Date Range Picker #13

Closed tzsk closed 7 years ago

tzsk commented 7 years ago

The DatePicker looks so awesome. But it lacks a few things. Maybe if it is identical in functionality with jQuery DatePicker it would have been huge difference. Like start and End date. And hooks to every bit of data. Methods and Events.

For now my proposal is to include Date Range Picker. It would be a nice inclusion.

hwupu commented 7 years ago

Actually it is documented in https://chmln.github.io/flatpickr/#options

My solution is:

config = {
  mode: 'range',
  defaultDate: '2016-12-12 to 2016-12-13',  // or you can make it dynamic; I simply pass new Date().toISOString()
}