Class: TooltipComponentModel

TooltipComponentModel

new tart.ui.TooltipComponentModel()

Extends

Members

statictart.ui.TooltipComponentModel.Directionstring

Direction this tooltip will be shown regarding the reference element.

Properties:
Name Type Default Description
TOP string top
BOTTOM string bottom
LEFT string left
RIGHT string right
TOP_LEFT string topLeft

statictart.ui.TooltipComponentModel.EventTypestring

Events that this model dispatches at corresponding states

Properties:
Name Type Default Description
INIT string init
SHOW string show
CLICK_WAIT string clickWait
HOVER_WAIT string hoverWait

statictart.ui.TooltipComponentModel.SMEventTypestring

Transition events for the internal state machine

Properties:
Name Type Default Description
TIMEOUT string timeout
BODY_CLICK string bodyClick
MOUSEOVER string goog.events.EventType.MOUSEOVER
MOUSEOUT string goog.events.EventType.MOUSEOUT
CLICK string goog.events.EventType.CLICK

statictart.ui.TooltipComponentModel.Typestring

Actions to trigger this tooltip. It can be triggered on click or on hover. Default is hover.

Properties:
Name Type Default Description
CLICK string click
HOVER string hover

boxOffsetnumber

How many pixels away the box (element) should be positioned with respect to the reference element.

offsetThresholdnumber

If the size of the reference element is greater than this threshold, the tip should be placed at a distance of tipOffset. Else, the tip should point to the center of the reference element.

timeoutnumber

How long it should take the tooltip to appear for a given event type, in milliseconds. Timeout 0 is instant activation.

tipOffsetnumber

How many pixels away the tip should be with respect to the reference element. For top and bottom directions, this is horizontal. For left and right this is vertical. Element (box) positioning is fluid, but this distance should always be kept.

Tooltip is triggered on hover by default.

Methods

Name Type Description
type string

protectedinitStateMachine()