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 |
|---|---|
|
Display the Tooltip above its target element. |
|
Display the Tooltip below its target element. |
|
Display the Tooltip to the left of its target element. |
|
Display the Tooltip to the right of its target element. |
Requirements
|
Minimum WinJS version |
WinJS 1.0 |
|---|---|
|
Namespace |
WinJS.UI |
See also