open method

Tooltip.open method

Applies to Windows only

Shows the Tooltip.

Syntax


tooltip.open(type);

Parameters

type [optional]

Type: String

A value that specifies when to show the Tooltip. The default value is "mousedown".

ValueMeaning
"touch"

Show a tooltip for a touch interaction. The tooltip has the same opening delay as touch down and doesn't close automatically.

"mouseover"

Show a tooltip for a mouse over interaction. The tooltip has the same opening delay as mouse over and will close automatically after a mouse over timeout.

"mousedown"

Show a tooltip for a mouse down interaction. The tooltip has no opening delay and doesn't close automatically.

"keyboard"

Show a tooltip for a keyboard interaction. The tooltip has the same opening delay as keyboard focus and will close automatically after a keyboard focus timeout.

 

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

Tooltip

 

 

Show:
© 2016 Microsoft