wakirin / Litepicker

Date range picker - lightweight, no dependencies
MIT License
898 stars 132 forks source link

predefined array of selected dates #282

Open hramenko opened 2 years ago

hramenko commented 2 years ago

how to set predefined array of selected days in simple format on initialization? something like this:

new Litepicker({element, 
plugins: ['multiselect'],
multiselect:{
selected: ['2021-11-05', '2021-11-13', '2021-11-23']
}})

this one not works:

new Litepicker({element, 
plugins: ['multiselect'],
multiselect:{
preMultipleDates: ['2021-11-05', '2021-11-13', '2021-11-23']
}})