Tooltip
Represents a tooltip.
Constructors
new Tooltip()
new Tooltip():
Tooltip
Returns
Accessors
isVisible
get
isVisible():boolean
Returns
boolean
Source
onTooltipClosed
get
onTooltipClosed():Observable
<any
>
Returns
Observable
<any
>
Source
onTooltipRequest
get
onTooltipRequest():Observable
<any
>
Returns
Observable
<any
>
Source
onTooltipShown
get
onTooltipShown():Observable
<any
>
Returns
Observable
<any
>
Source
root
get
root():HTMLElement
Returns a tooltip element.
Returns
HTMLElement
Source
Methods
bind()
bind(
element
,tooltip
?):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 |
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