Good day,
I’ve found a couple of times this problem in the forum but I wasn’t able to solve it for me.
I setup this timeline:
scheduler.createTimelineView({
name: "timeline",
x_unit: "minute",
x_date: "%H:%i",
x_step: 5,
x_size: 24,
x_start: datiSchedulerEventi.schedulerLastTimelinePosition,
x_length: 6,
y_unit: sections,
y_property: "section_id",
render:"bar"
});
This way the arrows move the view for 30 min blocks. When I try to update the current view with this fragment of code:
scheduler.date.timeline_start = function(date) {
date = new Date(date);
date.setMinutes(0);
date.setSeconds(0);
date.setMilliseconds(0);
return date;
};
scheduler.setCurrentView(ev.start_date);
The timeline shifts to the ev.start_date hour start and the forward arrow became locked.
Any help? I’d like to shift the view to the 30 min block where the ev.start_date resides.
Thanks