Articles in this section

How to display image in the symbol palette in Angular Diagram?

This article explains how to display an image in the symbol palette in Angular Diagram. We have support for rendering an image in the symbol palette in Angular Diagram. The source property of the node allows you to set the image reference path.

Here’s a code example demonstrating how to display an image in the Symbol Palette:

public Images: NodeModel[] = [
      {
          id: 'Syncfusion', shape: {
              type: 'Image',
              source: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTF9Gs2sPCVY5N9FZpNo7lrBEw7uIz1TuTTZC-NjQI&s'
          }
      },      
  ];
  
//define palette
public palettes: PaletteModel[] = [
      { id: 'flow', expanded: true, symbols: this.Images, iconCss: 'shapes', title: 'Flow Shapes' }];


<ejs-symbolpalette #symbolpalette="" id="symbolpalette" [enableanimation]="enableAnimation" [expandmode]="expandMode" [palettes]="palettes" width="100%" height="700px" [symbolheight]="60" [symbolwidth]="60" [symbolmargin]="symbolMargin" [getsymbolinfo]="getSymbolInfo">
</ejs-symbolpalette>

Refer to the working sample for additional details and implementation: Sample

Conclusion

We hope you enjoyed learning about how to display an image in the symbol palette in Angular Diagram.

You can refer to our Angular Diagram feature tour page to learn about its other groundbreaking feature representations and documentation 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 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!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied