Change x_size property of createTimelineView from web

Is there anyway to allow the user to be able to change the x_size property of createTimelineView? I would like to create maybe a + and - and when the user clicks on it, it would change the x_size by 10. Is there anyway to do this?


You can change value through API as

scheduler.matrix.timeline.x_size = new_value; scheduler.update_view();