Class: UWA.Controls.EmbedToolTip

UWA/Controls/EmbedToolTip. UWA.Controls.EmbedToolTip

new UWA.Controls.EmbedToolTip(element, htmlText, options)

Add a tool tip to an element on mouseover, that embeds the tooltipped element.

Available Events
Event Description
onShowTooltip Invoked when tooltip appears
onHideTooltip Invoked when tooltip disappears
Example
var myElement = UWA.createElement({
    text: 'My Tooltip element'
}).inject(widget.body);

var myEmbedTooltip = new UWA.Controls.EmbedToolTip(
    myElement,
    'my custom tooltip text',
    {width: 200}
);
Parameters
Name Type Description
element Element

Element which will attached to tooltip position

htmlText String

Text writted in the tooltip

options Object

Options hash or a option/value pair

Properties
Name Type Argument Default Description
className String <optional>
'uwa-embedToolTip'

Tooltip container className

width Number <optional>
100

Width of tooltip in pixel

Extends

  • UWA.Controls.Tooltip

Mixes In

  • UWA.Class.Timed

Index

Members

Members

<protected> defaultOptions

Properties:
Name Type Description
defaultOptions Object

The default controls options.