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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tooltip is not working with Complex Hierarchical Tree.

Thread ID:

Created:

Updated:

Platform:

Replies:

145797 Jul 9,2019 06:03 AM UTC Jul 10,2019 10:16 AM UTC JavaScript - EJ 2 1
loading
Tags: Diagram
Mayur Goud
Asked On July 9, 2019 06:03 AM UTC

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

Ramya Thirugnanam [Syncfusion]
Replied On 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   
  },  
 
 
Regards,  
Ramya T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon