populate_tree
populate_tree function has 1 variants:
Declaration
void populate_tree(char treeName);Description
populate_treefunction initializes the tree element. After successful initializing, "tree_node_expanded" Trigger will be fired.treeNameproperty is a string and should have match the following format:block name + '.' + tree idFor detail on json data format: https://www.jstree.com/docs/json/
Parameters
char treeName
Return Value
Example
Form file
<controlblock control-block-name="cbTree">
<tree id="data"></tree>
</controlblock>Sqlx file
void page.load() {
populate_tree('cbTree.data');
}Last updated
Was this helpful?