简体   繁体   中英

jQuery dynatree Tooltip

Using jQuery and Dynatree, I am trying to get the dynatree tooltip behavior like the jQuery normal tooltip.

Did anyone get that? As for what I am getting to do, the dynatree tooltip is just the default HTLM little yellow tooltip.

The following piece of code isn't doing it either.

  $("#my_tree").dynatree("option", { initAjax:{ url: my_url, data: my_data, }, onPostInit: function(){ $(".dynatree-title").tooltip(); } 

If you see the html generated by Dynatree, the nodes containing a title have that .dynatree-title style. But not even putting the $(".dynatree-title").tooltip(); in the callback it gets the jQuery tooltip look.

Did anyone get it?

Forget it. I was using the wrong callback method.

The right one is onCreate or onRender.

I hope this help someone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM