Adds an event handler that runs when a user clicks a menu item.
handler(event: MenuItemMouseEvent): void The name of the function or the function expression to run when the menu item is clicked.
handler(event: MenuItemMouseEvent): void