Menu.showAt method
Shows the Menu, if hidden, regardless of other states, top and left aligned at specified coordinates or at the location of the mouse event object.
Syntax
menu.showAt(x, y);
menu.showAt(mouseEventObj: MouseEvent);
Parameters
x
Type: numberRequired. The x coordinate point where the top left corner of the Menu will appear, relative to the top and left edge of the visual viewport.
y
Type: numberRequired. The y coordinate point where the top left corner of the Menu will appear, relative to the top and left edge of the visual viewport.
MouseEventObj
Type: MouseEventRequired. The MouseEvent Object that specifies where to show the Menu based on its location.
Return value
This method does not return a value.
Remarks
The showAt() method can be overloaded with either x,y coordinates or a mouse event object.
Requirements
Minimum WinJS version |
WinJS 4.1 |
Namespace |
WinJS.UI |
See also
Designers
Guidelines for flyouts
Guidelines for context menus