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 TOPstring top BOTTOMstring bottom LEFTstring left RIGHTstring right TOP_LEFTstring topLeft -
statictart.ui.TooltipComponentModel.EventTypestring
-
Events that this model dispatches at corresponding states
Properties:
Name Type Default Description INITstring init SHOWstring show CLICK_WAITstring clickWait HOVER_WAITstring hoverWait -
statictart.ui.TooltipComponentModel.SMEventTypestring
-
Transition events for the internal state machine
Properties:
Name Type Default Description TIMEOUTstring timeout BODY_CLICKstring bodyClick MOUSEOVERstring goog.events.EventType.MOUSEOVER MOUSEOUTstring goog.events.EventType.MOUSEOUT CLICKstring 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 CLICKstring click HOVERstring 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
-
handleEvent(type)
-
Name Type Description typestring -
protectedinitStateMachine()
-