I am using a copy of the framework that I got from
In docs.dhtmlx.com/doku.php?id=dhtm … r:timeline, I see:
I have a working timeline. This is the code that creates it:
scheduler.createTimelineView({
name: "timeline",
x_unit: "minute",
x_date: "%H:%i",
x_step: 60,
x_size: 8,
x_start: 13,
y_unit: sections,
y_property: "section_id",
dy: 30,
section_autoheight: false,
render: "bar"
});
If I change this:
scheduler.createTimelineView({
name: "Tutors",
x_unit: "minute",
x_date: "%H:%i",
x_step: 60,
x_size: 8,
x_start: 13,
y_unit: sections,
y_property: "section_id",
dy: 30,
section_autoheight: false,
render: "bar"
});
then I get:
So, is there something else I need to do? Is there some other ivar that I need to set so that something knows the correct name of the timeline view?
This error is occurring in the code at:
scheduler._pre_render_events = function(evs, hold) {
var hb = this.xy.bar_height;
var h_old = this._colsS.heights;
var h = this._colsS.heights = [0, 0, 0, 0, 0, 0, 0];
var data = this._els["dhx_cal_data"][0];
. . .
thanx - ray