Articles in this section
Category / Section

How to customize the style of the selector in Angular Diagram?

2 mins read

The Syncfusion® Angular Diagram offers support for customizing the appearance of the Selector Element. You can achieve this by overriding the style of the selector element in the CSS class.

The following code illustrates how to customize the style of the selector element:

<style>
     /*Customizing the circle of the selector element.*/
     .e-diagram-resize-handle{
       stroke: blue;
           stroke-width: 2px;
           stroke-dasharray:none;
           fill: yellow;
     }
     
     /*Customizing the selector appearance at the time of rubberband selection. */
     .e-diagram-selected-region {
           stroke: black;
           stroke-width: 2px;
           stroke-dasharray:none;
           fill: gray;
           opacity: .1;
       } 

     /*Customizing the selector appearance after rubberband selection. */
     .e-diagram-selector {
           stroke: black;
           stroke-width: 2px;
           stroke-dasharray:none;
           fill: cyan;
           opacity: .2;
       } 
</style>

The customized style appearance will look like this:

image.png

You can find a working example of this implementation in the provided sample on StackBlitz.

Sample

Conclusion

Hope you enjoyed learning about how to customize the style of the selector in Angular Diagram.

You can refer to our Angular Diagram feature tour page to learn about its other groundbreaking feature representations. You can explore our Angular Diagram documentation to understand how to present and manipulate data.

For current customers, you can check out our Angular 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 Angular Diagram and other Angular components.

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!

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