TreeMap.SizeBasedOnChildren

Syntax

SizeBasedOnChildren: Boolean;

Description

The SizeBasedOnChildren property determines if size of parent branch depends on the sum of children.

Comments

Property value is set from JSON or using the setSizeBasedOnChildren method, property value is returned with the getSizeBasedOnChildren method.

Example

To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component ):

// Remove dependency between parents' size and children size
treeMap.setSizeBasedOnChildren(false);

After the example execution the tree is rebuilt, and the size of parents does not depend on children size.

See also:

TreeMap