var btn = document.getElementById('btn');
btn.onclick = function() {
scheduler.createTimelineView({
name: "timeline",
x_unit: "minute",
x_date: "%H:%i",
x_step: 30,
x_size: 5,
x_start: 16,
x_length: 48,
y_unit: sections,
y_property: "section_id",
render:"bar"
});
scheduler.setCurrentView(scheduler.getState().date, scheduler.getState().mode);
};
So you can not change only one option on the fly, you need to recreate timeline view. I believe it would be handy to store settings in some object, change only one (or several) properties and then recreate view using with options object.
That seems to be good, thank you. The next question is how do I capture a double click on the x header colum (date) in timeline mode? I thought I could use the onXScaleDblClick event handler?
I need to get the date of the column that I have doubled clicked on.