EasyUI Forum
April 27, 2024, 03:32:18 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 change arrow icon on the fly  (Read 2442 times)
sky-t
Full Member
***
Posts: 145


View Profile
« on: January 17, 2019, 03:01:19 PM »

Hi there,

is ist possible to change the arrow icon of tree on the fly (I am sure you have solution for this)?

I want to realise an request to a websocket and wait for the response. While waiting for the response i want to show a waiting icon and after received the result from the websocket change back to the arrow icon.

Thank you for your Help!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 17, 2019, 07:32:17 PM »

The tree has the builtin lazy loading functionality. Please look at this example.
https://www.jeasyui.com/demo/main/index.php?plugin=Tree&theme=material-teal&dir=ltr&pitem=Async%20Tree&sort=asc

If you are using the combotree component, please call this line to show the loading icon.
Code:
$('#ct').next().find('.combo-arrow').addClass('pagination-loading');
<input id="ct" class="easyui-combotree" ...>
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!