EasyUI Forum
May 03, 2024, 09:21:52 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: tree node expansion load time  (Read 3721 times)
sectioni
Jr. Member
**
Posts: 67


View Profile
« 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?

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 23, 2017, 06:26:59 PM »

Please override the .tree-loading CSS class.
Code:
.tree-loading {
  background: ...
}
Logged
sectioni
Jr. Member
**
Posts: 67


View Profile
« Reply #2 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
« Last Edit: October 25, 2017, 02:15:44 AM by sectioni » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!