Flyout.placement property

Applies to Windows only

Gets or sets the placement to be used for this Flyout relative to the target object.

This value is overridden by the value of placement passed in the show method.

Syntax


var placement = flyout.placement;
flyout.placement = placement;

Property value

Type: Object

The placement of the Flyout relative to the target: the string literal "auto", "top", "bottom", "left", or "right". The default is "auto".

If the value is "auto", the flyout is placed such that the entire flyout can be shown without being resized.

If the value is "top", "bottom", "left", or "right", the flyout is shown on the side specified and, if necessary, resized to fit.

Remarks

The placement specified doesn't mirror for right-to-left languages; left is always left and right is always right.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Ui.js

See also

Flyout
Menu
MenuCommand
Displaying popups
Laying out your UI
HTML flyout control sample
Designers
Command patterns
Flyout
Guidelines for flyouts
Context menu
Guidelines for context menus

 

 

Show:
© 2014 Microsoft