dundas.ui.Tooltip Class

 

Inheritance Hierarchy

 
Class
   dundas.ui.Tooltip
 

Constructors

 
  Name Description
init Initializes the tooltip. Called during construction.
 
 

Properties

 
  Name Description
animationDuration Gets or sets the length of the transition between hiding and showing the tooltip in milliseconds.
arrow Gets the jQuery wrapper for the element used to render the tooltip arrow.
arrowOffsetX Distance in pixels to horizontally offset the tooltip from the tooltip arrow.
arrowOffsetY Distance in pixels to vertically offset the tooltip from the tooltip arrow.
arrowType Gets or sets the arrow shown on the tooltip.
container Gets the jQuery wrapper for the element used to render the tooltip.
content Gets the jQuery wrapper for the element used to render the tooltip content.
maximumWidth Gets or sets the maximum width in pixels.
state Gets the current rendering state of the tooltip.
x Gets or sets the desired horizontal location of the tooltip in pixels.
y Gets or sets the desired vertical location of the tooltip in pixels.
zIndex Gets or sets the z-index to apply to the container.
 
 

Methods

 
  Name Description
dispose Disposes the tooltip.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
hide Hides the tooltip.
position Positions the tooltip relative to a target whose size and position is given by bounds, or to the pointer if placement is dundas.ui.TooltipPlacement.POINTER otherwise.
setTextContent Convenience method for setting the content based on a string. Converts the newline sequence (\n) into HTML markup.
show Shows the tooltip content at the currently-set position.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
updateAnimatedPosition Sets x and y with an animation from the previous position.