We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Do UML Diagram Shapes have an OnClick event?

I am currently working with a UML class Diagram generated with Syncfusion, and I would like to show the description of a class in a popup when users click this class. Can I capture this event?



1 Reply

BM Balasubramanian Manikandan Syncfusion Team October 27, 2022 08:15 AM

Hi pros,


By default, when we click any element in the diagram, click event gets triggered. So, you can use that event on clicking UML shapes. We don’t have any specific event for a class attributes in UML shapes. Please find the code example and sample below.


Code Snippet

 

click={(args) => {

                  console.log('Click Event is triggered');

                }}


Sample

https://stackblitz.com/edit/react-eylyhy?file=index.js



Regards,

Balasubramanian M



Loader.
Live Chat Icon For mobile
Up arrow icon