How to Customize the Description in Symbol Palette in Angular Diagram
The Symbol Palette in Syncfusion® Angular Diagram, allows you to add and customize descriptions for the symbols displayed. This can enhance the usability of the palette by providing additional information about each symbol.
You can customize the descriptions of symbols in the palette by implementing the getSymbolInfo function. This sample demonstrates how to set up a symbol palette with descriptions:
//To provide information about each symbol
public getSymbolInfo(symbol: NodeModel | ConnectorModel): SymbolInfo {
return {
description: {
text: (symbol.addInfo as any).text, // Customize the display text
overflow:'Clip', // Define how text overflow is handled
wrap: "WrapWithOverflow", // Set text wrapping
fontSize: 12 // Define the font size of the description
},
};
}
Use the ejs-symbolpalette component to set up your symbol palette within an Angular template.
<ejs-symbolpalette #symbolpalette id="symbolpalette" [palettes]='palettes'
width="100%" height="700px" [symbolHeight]=100 [symbolWidth]=100 [getSymbolInfo]='getSymbolInfo'>
</ejs-symbolpalette>
Sample: Click Here
Conclusion
I hope you enjoyed about how to Customize the Description in Symbol Palette in Angular Diagram. You can refer to our Angular Diagram feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for 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 from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out 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, Direct-Trac, or feedback portal. We are always happy to assist you!