I am trying to add dinamiclly slotMinTime and slotMaxTime, after I do that last hour not showing. I saw in HTML its there but not showing. I try calendar.destroy and render but nothing...you can see on image. Here is my code.. Plesase help!!! Last our missing
dayCellContent: function (info) {
if (info.view.type == "dayGridMonth") {
return;
}
else {
var mojdatum = calendar.getDate();
mojdatum = moment(mojdatum).format('YYYY-MM-DD');
var mojpocetak = moment(mojdatum).format('YYYY-MM-DD HH:mm');
var mojkraj = moment(mojpocetak).add("23", "h").format('YYYY-MM-DD HH:mm');
$.ajax({
url: TimePath,
data: {
terminal: terminal,
start: mojpocetak,
end:mojkraj,
tip: kupac
},
success: function (data) {
calendar.setOption('slotMaxTime', data.max);
calendar.setOption('slotMinTime', data.min);
return;
}
});
return;
}
},