extraClass property

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 WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

Tooltip

 

 

Show:
© 2017 Microsoft