blockly > utils > idGenerator > getNextUniqueId
utils.idGenerator.getNextUniqueId() function
Generate the next unique element IDs. IDs are compatible with the HTML4 'id' attribute restrictions: Use only ASCII letters, digits, '_', '-' and '.'
For UUIDs use genUid (below) instead; this ID generator should primarily be used for IDs that end up in the DOM.
Signature:
export declare function getNextUniqueId(): string;
Returns:
string
The next unique identifier.