共用方式為


Flyout.anchor property

Gets or sets the default anchor to be used for this Flyout.

This value can be overridden by the anchor passed in the show method.

Syntax

var anchor = flyout.anchor;
flyout.anchor = anchor;

Property value

Type: HTMLElement

The DOM element to anchor the Flyout.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

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