Hello.
I am triying to handle the items click event of the <MenuComponent/> as says a documentation article (link below) but I dont figure out how to identify the menu item that triggers the event.
I want to know when user clicks a spesific button (log out, profile, etc...) to call the button's related function
Is there a way to do something like this?:
this.menuItems = [
{
items: [
{ text: 'Conferences', onClick:()=>{myFunction} }
],
text: 'Events'
},
The documentation article: https://ej2.syncfusion.com/react/documentation/menu/how-to/customize-menu-using-events/
Thanks.