calendar-plugin
calendar-plugin copied to clipboard
Highlight/select multiple days
Hi @wrick17,
Is there a way to highlight multiple days?
much like the disabled function where you can pass it a function to disable certain days
like so:
disable: function (date) {
const days = [0,6]
return days.includes(date.getDay())
},
which sets Saturdays and Sundays as disabled. So perhaps a new function called highligh or similar that could be used like this:
highlight: function (date) {
const dates = [ 'March 1 2023', 'March 2 2023', 'March 3 2023']
return dates.includes(date.getDate())
},
Maybe this is already possible, I haven't found a way of doing this though (I'm just one step above noob level ;).