Tooltip.innerHTML property

Applies to Windows only

Gets or sets the HTML content of the Tooltip.

Syntax


<div data-win-control="WinJS.UI.Tooltip" data-win-options="{ innerHTML : value}" ></div>


var innerHTML = tooltip.innerHTML;
tooltip.innerHTML = innerHTML;

Property value

Type: String

The HTML content of the Tooltip.

Examples

This example creates a Tooltip for a button. It attaches the Tooltip directly to the button element by setting the data-win-control and data-win-options properties on the button.


<button data-win-control="WinJS.UI.Tooltip" data-win-options="{innerHTML: 'Submit your Order'}">
    Submit</button>


The next example creates a Tooltip for a hyperlink.


<span data-win-control="WinJS.UI.Tooltip" data-win-options="{innerHTML: 'Microsoft Corporation<br><span>www.microsoft.com</span>'}"
style="margin-left: 40px;"><a href="http://www.microsoft.com">Microsoft</a>
</span>


For the complete code, see the HTML Tooltip control sample.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Ui.js

See also

Tooltip
HTML Tooltip control sample

 

 

Show:
© 2014 Microsoft. All rights reserved.