Hi, I want to set options after the flatpickr instace has been initiated.
In my case, I want to set the max and min date and I need to update the calendar.
Does flatpickr have methods to update the calendar after he is initialized?
Thanks
var calendar = new Flatpickr(document.getElementById("flatpickr"));
calendar.config.minDate = new Date();
// or
calendar.set("minDate", new Date());
Also see Event API
See https://jsfiddle.net/d4mcnxqh/ for a fiddle.
Most helpful comment
Also see Event API