Remove dashed node border on selection

Hello,

We're using HTML templates for our nodes in the Diagram Component and would like to use our own styling for the Selected state of the node. But there seems to be a dashed border that appears around the selected node that I'm unable to remove. I have removed the other user handles successfully, but the border remains.

Is it possible to get rid of this?

Thanks,

Ben.


Attachment: examplediagram_5f690c46.zip

6 Replies

RA Ranjitha Amirthalingam Syncfusion Team April 7, 2022 05:54 PM UTC

Hi Ben,


Requirement: Need to remove or change the selector of the Node.


We understood your requirement from the provided screenshot. Currently, we are checking the possibilities to achieve your requirement and will update the details on April 11, 2022.


Regards,

Ranjitha A.



RA Ranjitha Amirthalingam Syncfusion Team April 11, 2022 12:18 PM UTC

Requirement: Need to remove the dashed line of the selector.


We have achieved your requirement by updating the stroke color of the selector as transparent. We have provided code example
and sample to represent this.


Code Example:

<style>

    .e-diagram-border

    {

        stroke: transparent;

        stroke-dasharray:1,1

    }

</style>


Please let us know if you require any assistance in future.


Attachment: SelectorCustomize_d6e8d2a8.zip


BM Ben Mann April 11, 2022 12:36 PM UTC

Hello,

Many thanks for this, the fix looks good.

Thanks again.



RA Ranjitha Amirthalingam Syncfusion Team April 15, 2022 05:29 AM UTC

You are welcome, please let us know if you need any further assistance.



TA tarun appari October 25, 2024 07:07 AM UTC

I can't able to remove the border upon selection even after tried this




BR Balavignesh RaviChandran Syncfusion Team October 30, 2024 06:37 AM UTC

Thank you for reaching out.

We’ve created a simple sample demonstrating how to remove the selector's border using CSS styling, and it’s working as expected. 

image

Please refer to the attached sample and let us know if you encounter any issues or need further assistance.

 

Looking forward to your feedback!


Attachment: RemoveSelector_ddb69bcd.zip

Loader.
Up arrow icon