Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / _entries / 27_onloading.md
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md
new file mode 100644 (file)
index 0000000..db954f8
--- /dev/null
@@ -0,0 +1,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