IsEmpty: Boolean;
The IsEmpty property determines whether dimension contains elements.
Available values:
true. Dimension contains elements.
false. Dimension does not contain elements.
Use JSON or the setIsEmpty method to set the property value and the getIsEmpty method to get the property value.
To execute the example, the HTML page must contain the DimensionTree component named dimTree (see Example of Creating the DimensionTree Component). Check if dimension contains elements:
// Check if dimension contains elements
if (dim.getIsEmpty()) {
console.log("Dimension contains elements");
} else {
console.log("Dimension does not contain elements");
}
As a result the console displays check result:
Dimension contains elements
See also: