Reinitialize again Daypilot component or somehow destroy it on new reinit
5 years ago.
Hello,
I am creating like json variable from dataTables on every new draw from it ( by ajax i am getting data which i transform to global variable as on image from dataTables)
on every request i must reinitialize function where i have things like new datatable, or google maps... or custom things... also i have there scheduler
function initDpScheduler() {
const dp = new DayPilot.Scheduler("dp");
....
do.init();
}
on fist init is working.. show me scheduler with data... but on second reinit i get issue like on image...
Is some function/option/api how init scheduler as on first load.. because i need "destroy" initialized DP and create new component DP again....
Is this possible ???
DayPilot