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
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.