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:1459


onTooltipClosed

get onTooltipClosed(): Observable<any>

Returns

Observable<any>

Source

ui.ts:1463


onTooltipRequest

get onTooltipRequest(): Observable<any>

Returns

Observable<any>

Source

ui.ts:1461


onTooltipShown

get onTooltipShown(): Observable<any>

Returns

Observable<any>

Source

ui.ts:1462


root

get root(): HTMLElement

Returns a tooltip element.

Returns

HTMLElement

Source

ui.ts:1455

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

ParameterType
elementHTMLElement
tooltip?null | string | () => null | string | HTMLElement
tooltipPosition?null | "left" | "top" | "bottom" | "right"

Returns

HTMLElement

Source

ui.ts:1439


hide()

hide(): void

Hides the tooltip.

Returns

void

Source

ui.ts:1432


show()

show(content, x, y): void

Shows the tooltip at the specified position

Parameters

ParameterType
contentstring | HTMLElement
xnumber
ynumber

Returns

void

Source

ui.ts:1446


showRowGroup()

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

Parameters

ParameterType
dataFrameDataFrame
indexPredicateIndexPredicate
xnumber
ynumber

Returns

void

Source

ui.ts:1450