damienroche / vue-mj-daterangepicker

🗓Vue.js date range picker with multiples ranges and presets (vue 2.x)
https://damienroche.github.io/vue-mj-daterangepicker/
60 stars 39 forks source link

Add api to set default preset selection #47

Open ibnumalik opened 3 years ago

ibnumalik commented 3 years ago

Currently, 'custom' is hardcoded to be the default selected presets. https://github.com/damienroche/vue-mj-daterangepicker/blob/b3782e2cd46e199a3dd3b278181fa9c3939fc4be/src/components/DateRangePicker.vue#L165

can we add an api to pass default preset selection? for example I may want 'next7days' to be the default selected presets.

thank you.I can open the pr if you want me to