EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on January 15, 2019, 01:33:02 AM



Title: Linkbutton in Tree
Post by: sky-t 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


Title: Re: Linkbutton in Tree
Post by: jarry 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
});
}
})


Title: Re: Linkbutton in Tree
Post by: sky-t on January 16, 2019, 11:13:41 PM
Hi jarry,

it works!!!

Thank you so much!!!