Tooltip.extraClass property

Applies to Windows only

Gets or appends additional CSS classes to apply to the element that hosts the Tooltip.

Syntax


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


var extraClass = tooltip.extraClass;
tooltip.extraClass = extraClass;

Property value

Type: String

A String that contains one or more CSS classes to append to the element that hosts the Tooltip. When there are multiple class names, they are separated by one or more spaces.

Remarks

The win-tooltip class is automatically assigned to the element that hosts the Tooltip. This property appends additional CSS classes, but does not replace win-tooltip. You use this property to append addition classes so that you can define different styles for multiple Tooltip controls on the same page.

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

 

 

Show:
© 2014 Microsoft