diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md | 22 |
1 files changed, 22 insertions, 0 deletions
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 index 00000000..db954f8c --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md @@ -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 |