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 01:15 PM UTC

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.
Up arrow icon