I am having an issue when trying to create multiple timeline views, only the timeline that is defined last is created successfully. The other one just renders a blank page.
There are no console errors and overall the scheduler is working as expected with loading data from the server, adding/removing dates via custom lightbox etc.
My code is below but I have tried init’ing the scheduler using scheduler.init as well as jquery.
// create timeline view
scheduler.createTimelineView({
name: 'small',
dy: 40,
event_min_dy: 20,
x_unit: 'day',
x_date: '%D %j',
x_step: 1,
x_size: 14,
x_length: 7,
y_unit: scheduler.serverList('jobs', []),
y_property: 'job_id',
render: 'unit',
first_hour: 6,
last_hour: 18
});
scheduler.createTimelineView({
name: 'large',
dy: 200,
event_min_dy: 120,
x_unit: 'day',
x_date: '%D %j',
x_step: 1,
x_size: 14,
x_length: 7,
y_unit: scheduler.serverList('jobs', []),
y_property: 'job_id',
render: 'bar',
first_hour: 6,
last_hour: 18
});
schedulerEl.dhx_scheduler({
date: new Date(),
mode: 'small'
});