Class: Tooltip
ui.Tooltip
Represents a tooltip.
Constructors
constructor
• new Tooltip()
Accessors
isVisible
• get
isVisible(): boolean
Returns
boolean
Defined in
onTooltipClosed
• get
onTooltipClosed(): Observable
<any
>
Returns
Observable
<any
>
Defined in
onTooltipRequest
• get
onTooltipRequest(): Observable
<any
>
Returns
Observable
<any
>
Defined in
onTooltipShown
• get
onTooltipShown(): Observable
<any
>
Returns
Observable
<any
>
Defined in
root
• get
root(): HTMLElement
Returns a tooltip element.
Returns
HTMLElement
Defined in
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
Name | Type |
---|---|
element | HTMLElement |
tooltip? | null | string | () => null | string | HTMLElement |
Returns
HTMLElement
Defined in
hide
▸ hide(): void
Hides the tooltip.
Returns
void
Defined in
show
▸ show(content
, x
, y
): void
Shows the tooltip at the specified position
Parameters
Name | Type |
---|---|
content | string | HTMLElement |
x | number |
y | number |
Returns
void
Defined in
showRowGroup
▸ showRowGroup(dataFrame
, indexPredicate
, x
, y
): void
Parameters
Name | Type |
---|---|
dataFrame | DataFrame |
indexPredicate | IndexPredicate |
x | number |
y | number |
Returns
void