One can set the properties of the timeline, like x_unit, x_step, but is it possible to read them somehow? Like scheduler.timeline.x_unit?
Hi,
the actual settings of all defined timelines (scheduler can contain several of them) are stored in scheduler.matrix object. You can access them as scheduler.matrix[viewName]
var view = scheduler.matrix[viewName];
console.log(view.x_unit);
The following snippet is usually used for getting config of the currently displayed timeline, as well as for detecting whether the timeline is currently opened:
[code]var view = scheduler.matrix[scheduler.getState().mode];
if(view){
// one of the timeline views opened