EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sectioni on October 23, 2017, 02:56:49 AM



Title: tree node expansion load time
Post by: sectioni on October 23, 2017, 02:56:49 AM
Hi,

I would like to replace the arrow icon next to a node when expanding it, with an animated "loading" circle or at least a "sand-clock" icon if the loading process is taking more than 1 second. (and of course remove it after data has returned from server)

How can I do that?



Title: Re: tree node expansion load time
Post by: stworthy on October 23, 2017, 06:26:59 PM
Please override the .tree-loading CSS class.
Code:
.tree-loading {
  background: ...
}


Title: Re: tree node expansion load time
Post by: sectioni on October 25, 2017, 02:13:16 AM
EasyUI isn't adding this class to the tree.

I am loading the tree's data manually with the 'data' property after I do my own ajax request...

I will implement something myself using the onBeforeExpand event