Skip to main content
cngx-src documentation

nextUid

Functioncore/utils

projects/core/utils/uid.util.ts

Description#

Generates a unique ID string with the given prefix.

Each call returns a monotonically increasing ID: prefix-0, prefix-1, etc. Used internally for ARIA id attributes on dialogs, popovers, and tooltips.

Signature#

nextUid(prefix: string)

Parameters#

@paramprefixstring

Returns#

string