Skip to main content

Home > blockly > utils > idGenerator

utils.idGenerator namespace

Functions

FunctionDescription
genUid()Generate a random unique ID.
getNextUniqueId()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.

Variables

VariableDescription
TEST_ONLY