getColumnIndex

returns the index of the column by its name

number getColumnIndex(string name);

Parameters

namestringthe name of the column

Returns

numberthe index of the column

Example

var index = gantt.getColumnIndex("start_date"); // => 1

Back to top