onItemClick( )


Adds an event handler that runs when a user clicks a menu item.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(): void The name of the function or the function expression to run when the menu item is clicked.

Returns
Return Type:MenuItem
Was this helpful?
Yes
No