Properties

new Tooltip()

Fires
module:meteoJS/tooltip#show:tooltip
module:meteoJS/tooltip#hide:tooltip

Properties

content  (undefined or mixed)

Content of tooltip. Could be a String or a HTMLElement or a jQuery object.

read-only

isShown  Boolean

Is tooltip shown.

Methods

abstract

hide() → module:meteoJS/tooltip.Tooltip

Hide tooltip.

Returns

module:meteoJS/tooltip.Tooltip This.

abstract protected

onContentChange()

Called when property 'content' changes.

abstract

show([options]) → module:meteoJS/tooltip.Tooltip

Show tooltip.

Parameters

Name Type Optional Description

options

Object

Yes

Options.

Values in options have the following properties:

Name Type Optional Description

posX

Number

 

Position in x direction.

posY

Number

 

Position in y direction.

Returns

module:meteoJS/tooltip.Tooltip This.

abstract

update() → module:meteoJS/tooltip.Tooltip

Update tooltip. E.g. due to content change, which moved the tooltip.

Returns

module:meteoJS/tooltip.Tooltip This.