We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Tooltip is not working with Complex Hierarchical Tree.

I am trying to use Complex Hierarchical tree with below Data 
but when i am trying to use tooltip but it is not showing up.

i want to show the node name.
Added .ts file in Zip let me know if there is any way. 

Attachment: indexts_869c8284.zip

1 Reply

RT Ramya Thirugnanam Syncfusion Team July 10, 2019 10:16 AM UTC

Hi Mayur,  
Please set the node name to the tooltip content property in getNodeDefaults function to achieve your requirement. We have modified your sample and it is available in below link.  
Here is the modified code example: 
Code example:  
let diagram: Diagram = new Diagram({  
        //Sets the default values of nodes  
   getNodeDefaults: function (obj) {   
    obj.width = obj.data.Name.length * 10;  
    obj.height = 40;  
    obj.shape = { type: 'Basic', shape: 'Rectangle', cornerRadius: 7 };  
    obj.constraints= NodeConstraints.Default | NodeConstraints.Tooltip  
    obj.tooltip.content = obj.data.Name   
Ramya T 

Live Chat Icon For mobile
Up arrow icon