Identifiable

Configs

1
id: String

The id of this object. If not specified one will be generated. Also used for lookups through the static getById of the class which mixes this in. An example being Widget.

For a Widget, this is assigned as the id of the DOM element and must be unique across all elements in the page's document.

Properties

2
isIdentifiable: Boolean= truereadonly
Identifies an object as an instance of Identifiable class, or subclass thereof.
isIdentifiable: Boolean= truereadonlystatic
Identifies an object as an instance of Identifiable class, or subclass thereof.

Functions

2

Generate a new id, using an internal counter and a prefix.

ParameterTypeDescription
prefixString

Id prefix

Returns: String -

Generated id

Unregister Identifiable instance, normally done on destruction

ParameterTypeDescription
instanceObject

Object to unregister

idString

The id of the instance to unregister.