Tooltip
Represents a tooltip.
Constructors
new Tooltip()
new Tooltip():
Tooltip
Returns
Accessors
isVisible
getisVisible():boolean
Returns
boolean
Source
onTooltipClosed
getonTooltipClosed():Observable<any>
Returns
Observable<any>
Source
onTooltipRequest
getonTooltipRequest():Observable<any>
Returns
Observable<any>
Source
onTooltipShown
getonTooltipShown():Observable<any>
Returns
Observable<any>
Source
root
getroot():HTMLElement
Returns a tooltip element.
Returns
HTMLElement
Source
Methods
bind()
bind(
element,tooltip?,tooltipPosition?):HTMLElement
Associated the specified visual element with the corresponding item. Example: https://public.datagrok.ai/js/samples/ui/tooltips/tooltips
Parameters
| Parameter | Type |
|---|---|
element | HTMLElement |
tooltip? | null | string | () => null | string | HTMLElement |
tooltipPosition? | null | "left" | "top" | "bottom" | "right" |
Returns
HTMLElement
Source
hide()
hide():
void
Hides the tooltip.
Returns
void
Source
show()
show(
content,x,y):void
Shows the tooltip at the specified position
Parameters
| Parameter | Type |
|---|---|
content | string | HTMLElement |
x | number |
y | number |
Returns
void
Source
showRowGroup()
showRowGroup(
dataFrame,indexPredicate,x,y):void
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
indexPredicate | IndexPredicate |
x | number |
y | number |
Returns
void