EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: nasiayam on April 24, 2017, 08:01:58 AM



Title: Tree Mouseover
Post by: nasiayam on April 24, 2017, 08:01:58 AM
Hi

Does easyui-tree supports mouse hover event ? If it does, how to do it ? My intention is to generate tooltip while mouse hovers through a tree control.

Thanks. 


Title: Re: Tree Mouseover
Post by: jarry on April 24, 2017, 08:27:36 PM
You can define the 'formatter' function to attach the 'title' attribute to the node. Please try this code:
Code:
$('#tt').tree({
formatter: function(node){
return '<span title="'+node.text+'">'+node.text+'</span>';
}
})