Tooltip API
These methods allow you to show Tooltip helper near own elements. Parameters are the same as in CodeX Tooltips library.
show
|
The method shows a tooltip with custom content on the passed element. |
hide
|
Method hides the Tooltip. |
onHover
|
Decorator for showing tooltip near some element by mouseenter and hide by mouseleave .
|
The method shows a tooltip with custom content on the passed element.
this.api.tooltip.show(element, content, options);
element
|
HTMLElement | Tooltip will be showed near this element |
content
|
String or Node | Content that will be appended to the Tooltip |
options
|
Object | Some displaying options, see below |
Available showing options
placement
|
, , ,
|
Where to place the tooltip. Default value is bottom
|
marginTop
|
Number |
Offset above the tooltip with placement
|
marginBottom
|
Number |
Offset below the tooltip with placement
|
marginLeft
|
Number |
Offset at left from the tooltip with placement
|
marginRight
|
Number |
Offset at right from the tooltip with placement
|
delay
|
Number |
Delay before showing, in ms. Default is
|
hidingDelay
|
Number |
Delay before hiding, in ms. Default is
|
This method does not return anything.
Method hides the Tooltip.
There are no parametres.
This method does not return anything.
Decorator for showing tooltip near some element by mouseenter
and hide by mouseleave
.
this.api.tooltip.onHover(element, content, options);
Parameters are the same as in show()
method
This method does not return anything.