Tooltip.open method

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".

Value Meaning
"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