Version
Version | Function changes |
---|---|
11.0.1 | Add "expandNodeLayer、collapseNodeLayer、expandAllNodeLayer、collapseAllNodeLayer" Interface |
centerReport
Method | centerReport() | When using "Data Analysis Preview", set the report to be displayed in the center |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report , the report will be displayed in the center under the "Data Analysis Preview" Example 2: The general report is displayed in the center in the "Data Analysis Preview" mode _g().centerReport(); | |
Application example | Under the "Data Analysis Preview", the report is displayed in the center: Click to download the template: | |
Mobile | Not support mobile terminal |
expandNodeLayer
Method | expandNodeLayer(layer) | Expand the collapsed tree to N level nodes |
---|---|---|
Parameter | layer: number | Node level, number, the outermost node is 0 |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report, expand the collapsed tree to the level 1 node
Example 2: Expand the collapsed tree to level 1 nodes in a general report _g().expandNodeLayer(1); | |
Application example | Click the button to expand the collapsed tree to level 1 nodes: For detailed implementation process, please refer to:JS Custom number of layers of tree expansion | |
Mobile | Not support mobile terminal |
collapseNodeLaye
Method | collapseNodeLayer(layer) | Collapse the collapsed tree to N level nodes |
---|---|---|
Parameter | layer: number | Node level, number, the outermost node is 0 |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report, collapse the collapsed tree to the level 1 node
Example 2: Collapse the collapsed tree to level 1 nodes in a general report _g().collapseNodeLayer(1); | |
Application example | Click the button to collapse the collapsed tree to level 1 nodes: For detailed implementation process, please refer to:JS Custom number of layers of tree expansion | |
Mobile | Not support mobile terminal |
expandAllNodeLayer
Method | expandAllNodeLayer() | Expand all nodes of the collapsed tree |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report, expand all nodes of the collapse tree Example 2: Expand and collapse all nodes of the tree in a general report _g().expandAllNodeLayer(); | |
Application example | Click the button to expand all nodes of the collapsed tree: For detailed implementation process, please refer to:JS Custom number of layers of tree expansion | |
Mobile | Not support mobile terminal |
collapseAllNodeLayer
Method | collapseAllNodeLayer() | Collapse all nodes of the collapsed tree |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report, collapse all nodes of the collapse tree Example 2: Collapse and collapse all nodes of the tree in a general report _g().collapseAllNodeLayer(); | |
Application example | Click the button to collaspe all nodes of the collapsed tree: For detailed implementation process, please refer to:JS Custom number of layers of tree expansion | |
Mobile | Not support mobile terminal |