Question

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?

Was it helpful?

Solution

Forget it. I was using the wrong callback method.

The right one is onCreate or onRender.

I hope this help someone.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top