次の方法で共有


Tooltip.placement property

Gets or sets the position for the Tooltip relative to its target element: top, bottom, left or right.

Syntax

<div data-win-control="WinJS.UI.Tooltip" data-win-options="{ placement : value}" ></div>
var placement = tooltip.placement;
tooltip.placement = placement;

Property value

Type: String

The position for the Tooltip relative to its target element (its contentElement). The default value is "top".

Value Condition
"top"

Display the Tooltip above its target element.

"bottom"

Display the Tooltip below its target element.

"left"

Display the Tooltip to the left of its target element.

"right"

Display the Tooltip to the right of its target element.

 

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

Tooltip

HTML Tooltip control sample