<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Menu`](Menu) › [`forEvent`](Menu/forEvent) ## Menu.forEvent() method 1.6.0 **Signature:** ```typescript static forEvent(evt: PointerEvent | MouseEvent): Menu; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>evt</code> | <code>PointerEvent</code><code> &#124; </code><code>MouseEvent</code> | | **Returns:** [`Menu`](Menu)