summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md
blob: db954f8c1cacdbaae759fa0065584308ee039fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
title: onLoading
name: options-onloading
---

The onLoading parameter is called when the tree data is loading. This gives us the opportunity to display a loading signal.

Callback looks like this:

```js
function (is_loading, node, $el)
```

* **is_loading**: boolean
  * true: data is loading
  * false: data is loaded
* **node**:
  * Node: if a node is loading
  * null: if the tree is loading
* **$el**:
  * if a node is loading this is the `li` element
  * if the tree is loading is the `ul` element of the whole tree