How to Set Tooltip for Fixed User Handles in Angular Diagram Nodes?
In this article, you can learn about how to set tooltips for fixed user handles in Angular diagram nodes. In the Graphical User Interface (GUI), a tooltip is a message that is displayed when the mouse hovers over an element. The Angular Diagram provides support to show a tooltip when the mouse hovers over any fixed user handle.
To set a tooltip for node fixed user handles in a Diagram on mouse hover, we can use the tooltip property of the fixed user handle with the tooltip content. You can also customize other properties of the tooltip, such as position, width, height, etc.
// set the tooltip for node fixed user handle
public tooltip = {
content: 'Node fixed user handle tooltip',
position: 'TopLeft'
}
The below code example shows how to set tooltip for diagram node fixed user handles:
<e-nodes>
<e-node id='node1' [offsetX]=300 [offsetY]=300 [height]=100 [width]= 100 >
<e-node-annotations>
<e-node-annotation id="label1" content="Node 1" [offset]="offset">
</e-node-annotation>
</e-node-annotations>
<e-node-fixeduserhandles>
<e-node-fixeduserhandle id='color' [width]=20 [height]=20 [margin]='margin1' [offset]='offset1' [tooltip]="tooltip" pathData='M31.5,13.5 C31.5,20.95,24.44,27,15.75,27 C7.059999999999999,27,0,20.95,0,13.5 C0,6.050000000000001,7.06,0,15.75,0 C24.44,0,31.5,6.05,31.5,13.5 Z M13.12,4.5 L13.12,11.25 L5.25,11.25 L5.25,15.75 L13.12,15.75 L13.12,22.5 L18.38,22.5 L18.38,15.75 L26.25,15.75 L26.25,11.25 L18.38,11.25 L18.38,4.5 Z '>
</e-node-fixeduserhandle>
</e-node-fixeduserhandles>
</e-node>
</e-nodes>
ngOnInit(): void {
this.margin1 = {left: 20, bottom: 10 };
this.offset1 = { x: 1, y: 0 };
this.sourcePoint1 = { x: 100, y: 100 };
this.targetPoint1 = { x: 300, y: 200 };
//Tooltip for node fixed user handle
this.tooltip = {
content: 'Node fixed user handle tooltip',
position: 'TopLeft',
}
}
Sample : Click here for sample
Conclusion
We hope you enjoyed learning how to set tooltips for fixed user handles in Angular Diagram nodes.
You can refer to our Angular Diagram feature tour page to learn about its other groundbreaking feature representations and documentation, as well as how to quickly get started with configuration specifications. You can also explore our Angular Diagram example to understand how to create and manipulate data.
For current customers, you can check out our components on the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to explore our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!