change y_unit (sections) after createTimelineView

Hi all,

After having called
var originalResource = [{key:originalResourceKey, label:originalResourceLabel}];
scheduler.createTimelineView({… y_unit:originalResource …

I would like to change the y_unit on the timeline view runtime, to show or hide different resources.

Something like scheduler.y_unit = [{key:newResourceKey, label:newResourceLabel}];
(which doesn’t do it). And how to refresh the display.

Any idea?

Wolfgang

The next must be enough to apply new set of units and repaint a current view.

scheduler.matrix.timeline.y_unit = [ ... new set of data... ]; scheduler.callEvent("onOptionsLoad",[]);