nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / _entries / 27_onloading.md
1 ---
2 title: onLoading
3 name: options-onloading
4 ---
5
6 The onLoading parameter is called when the tree data is loading. This gives us the opportunity to display a loading signal.
7
8 Callback looks like this:
9
10 ```js
11 function (is_loading, node, $el)
12 ```
13
14 * **is_loading**: boolean
15   * true: data is loading
16   * false: data is loaded
17 * **node**:
18   * Node: if a node is loading
19   * null: if the tree is loading
20 * **$el**:
21   * if a node is loading this is the `li` element
22   * if the tree is loading is the `ul` element of the whole tree