EasyUI Forum
May 05, 2024, 01:29:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Linkbutton in Tree  (Read 2505 times)
sky-t
Full Member
***
Posts: 145


View Profile
« on: January 15, 2019, 01:33:02 AM »

Hi there,

is it possible to use the formatter to create a linkbutton in a tree?


Thanks
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 16, 2019, 05:36:33 AM »

Here is the example shows how to create a linkbutton on a tree.
Code:
$('#tt').tree({
formatter: function(node){
return '<a href="#" class="tree-btn">'+node.text+'d</a>';
},
onLoadSuccess: function(){
$(this).find('.tree-btn').linkbutton({
height: 18
});
}
})
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #2 on: January 16, 2019, 11:13:41 PM »

Hi jarry,

it works!!!

Thank you so much!!!
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!