Version
Version | Functional Change |
11.0 | Differences from V 10.0: V 10.0 supports expandNodeLayer and collapseNodeLayer APIs only when you install the new engine plugin of V 1.6.0 and later versions. V 11.0 can directly support expandAllNodeLayer and collapseAllNodeLayer APIs. · |
expandNodeLayer
Method | expandNodeLayer(layer) | Expand the collapse tree to the N layers of nodes. |
Parameter | layer: number | Layer number of nodes (number). The layer number of outermost nodes is 0. |
Return Value | void | |
Example | Example 1: If the obtained report block object is defined as report, you can expand the collapse tree to the first layer node. report.expandNodeLayer(1); Example 2: expand the collapse tree to the first layer node in a general report. _g().expandNodeLayer(1); | |
Application Example | Click the button to expand the collapse tree to the first layer of nodes. Click to download template: Expand the Collapse Tree to 1st Layer Node.cpt
| |
Mobile Terminal | Not supported |
collapseNodeLayer
Method | collapseNodeLayer(layer) | Fold the collapse tree to the N layer of nodes. |
Parameter | layer: number | Layer number of nodes (number). The layer number of outermost nodes is 0. |
Return Value | void | |
Example | Define the obtained report block object as report and fold the collapse tree to the first layer of nodes. report.collapseNodeLayer(1); Fold the collapse tree in a general report to the first layer of nodes. _g().collapseNodeLayer(1); | |
Application Example | Click the button to fold the collapse tree to the first layer of nodes. Click to download the template: Unfold the Collapse Tree to 1st Layer Node.cpt | |
Mobile Terminal | Not supported |
expandAllNodeLayer
Method | expandAllNodeLayer() | Expand all nodes of the collapse tree. |
Parameter | / | / |
Return Value | void | |
Example | Example 1: If the obtained report block object is defined as report, you can expand all nodes of the collapse tree. report.expandAllNodeLayer(); Example 2: expand all nodes of the collapse tree in a general report. _g().expandAllNodeLayer(); | |
Application Example | Click the button to expand all nodes of the collapse tree. Click to download the template: Expand All Nodes of the Collapse Tree.cpt
| |
Mobile Terminal | Not supported |
collapseAllNodeLayer
Method | collapseAllNodeLayer() | Fold all nodes of the collapse tree. |
Parameter | / | / |
Return Value | void | |
Example | Example 1: define the obtained report block object as report and fold all nodes of the collapse tree. report.collapseAllNodeLayer(); Example 2: fold all nodes of the collapse tree in a general report. _g().collapseAllNodeLayer(); | |
Application Example | Click the button to fold all nodes of the collapse tree. Click to download the template: Unfold All Nodes of the Collapse Tree.cpt.cpt
| |
Mobile Terminal | Not supported |