Skip to main content

Tooltip

Represents a tooltip.

Constructors

new Tooltip()

new Tooltip(): Tooltip

Returns

Tooltip

Accessors

isVisible

get isVisible(): boolean

Returns

boolean

Source

ui.ts:1382


onTooltipClosed

get onTooltipClosed(): Observable<any>

Returns

Observable<any>

Source

ui.ts:1386


onTooltipRequest

get onTooltipRequest(): Observable<any>

Returns

Observable<any>

Source

ui.ts:1384


onTooltipShown

get onTooltipShown(): Observable<any>

Returns

Observable<any>

Source

ui.ts:1385


root

get root(): HTMLElement

Returns a tooltip element.

Returns

HTMLElement

Source

ui.ts:1378

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

ParameterType
elementHTMLElement
tooltip?null | string | () => null | string | HTMLElement

Returns

HTMLElement

Source

ui.ts:1362


hide()

hide(): void

Hides the tooltip.

Returns

void

Source

ui.ts:1355


show()

show(content, x, y): void

Shows the tooltip at the specified position

Parameters

ParameterType
contentstring | HTMLElement
xnumber
ynumber

Returns

void

Source

ui.ts:1369


showRowGroup()

showRowGroup(dataFrame, indexPredicate, x, y): void

Parameters

ParameterType
dataFrameDataFrame
indexPredicateIndexPredicate
xnumber
ynumber

Returns

void

Source

ui.ts:1373