Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the placement to be used for this Menu relative to the target object.
This value is overridden by the value of placement passed in the show method.
Syntax
var placement = menu.placement;
menu.placement = placement;
Property value
Type: Object
The placement of the Menu relative to the target: the string literal "auto", "top", "bottom", "left", or "right". The default is "auto".
If the value is "auto", the menu is placed such that the entire menu can be shown without being resized.
If the value is "top", "bottom", "left", or "right", the menu is shown on the side specified and, if necessary, resized to fit.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.UI |
See also
MenuCommand
Designers
Guidelines for flyouts
Guidelines for context menus