populate_tree

populate_tree function has 1 variants:

Declaration

void populate_tree(char treeName);

Description

  1. populate_tree function initializes the tree element. After successful initializing, "tree_node_expanded" Trigger will be fired.

  2. treeName property is a string and should have match the following format: block name + '.' + tree id

  3. 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