EasyUI Forum
September 13, 2025, 07:42:17 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: How to expand tree node by clicking its name (not by little arrow on the left)  (Read 10148 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: August 11, 2014, 06:43:19 PM »

Yes how to expand a tree parent node by clicking its name (not by little arrow on the left)?

I want my parent node its not expand by clicking the little arrow on the left because its not too visible..

Thanks in advance
Thanks stworthy

Look picture attached to make sure where are the little arrow.  Cry
« Last Edit: August 11, 2014, 06:45:07 PM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #1 on: August 12, 2014, 03:19:54 AM »

someone...
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #2 on: August 12, 2014, 05:48:10 AM »

When clicking a tree node, the 'onClick' event fires, in which you can call 'expand','collapse' or 'toggle' methods to do actions on this clicked node. Please try the code below:
Code:
$('#tt').tree({
data:data,
onClick:function(node){
$(this).tree('toggle', node.target);
}
})
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!