populate_tree
populate_tree
function has 1 variants:
Declaration
void populate_tree(char treeName);
Description
populate_tree
function initializes the tree element. After successful initializing, "tree_node_expanded" Trigger will be fired.treeName
property is a string and should have match the following format:block name + '.' + tree id
For 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?