uid

returns a unique id

number uid();

Returns

numbera unique id

Example

var id = gantt.uid();

Details

The generated id is unique per page but not globally. So you can use the method in the on-page logic. It's not good enough for use as the DB id.

Change log

added in version 4.0

Back to top