Skip to main content

uid

Description

Returns a unique id

uid: () => number

Returns

  • id - (number) - a 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