getPredefinedAttributeId(id: String);
id. Preset identifier value.
The getPredefinedAttributeId method returns identifier of attribute by predefined identifier value.
If the preset value is not specified, the method returns the NAME value.
To execute the example, the HTML page must contain the DimTree component named dimTree (see Example of Creating the DimTree Component). Get identifier by the Order preset value:
// Get identifier by the preset value console.log("Identifier of the Order preset value: " + dimTree.getPredefinedAttributeId("Name"));
As a result the console displays identifier by the Order preset value:
Identifier of the Order preset value: ORDER
See also: