How to customize the style of the selector in Vue Diagram?
This article explains how to customize the style of the selector in Vue Diagram. The Syncfusion® Vue 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:
Refer to the working sample for additional details and implementation: Sample
Conclusion
We hope you enjoyed learning about how to customize the style of the selector in Vue Diagram.
You can refer to our Vue 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 Vue 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, BoldDesk Support, or feedback portal. We are always happy to assist you!