Tooltip.extraClass property

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


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


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.


Minimum WinJS version

WinJS 1.0



See also