Appearance
Classes
TooltipController
Defined in: core/tooltip-controller.ts:57
Type Parameters
TData
TData = unknown
Constructors
Constructor
new TooltipController<
TData>(reference,options):TooltipController<TData>
Defined in: core/tooltip-controller.ts:135
Parameters
reference
options
TooltipControllerOptions<TData>
Returns
TooltipController<TData>
Properties
_entityCacheKey?
optional_entityCacheKey?:string
Defined in: core/tooltip-controller.ts:76
_entityData?
optional_entityData?:TData|null
Defined in: core/tooltip-controller.ts:75
_isPinned?
optional_isPinned?:boolean
Defined in: core/tooltip-controller.ts:86
_isPointerInside?
optional_isPointerInside?:boolean
Defined in: core/tooltip-controller.ts:87
_nestedTooltips
_nestedTooltips:
TooltipController<any>[] =[]
Defined in: core/tooltip-controller.ts:74
_peerDismissed?
optional_peerDismissed?:boolean
Defined in: core/tooltip-controller.ts:94
_pinButton?
optional_pinButton?:HTMLElement|null
Defined in: core/tooltip-controller.ts:95
_renderedVisualSections?
optional_renderedVisualSections?:Set<string>
Defined in: core/tooltip-controller.ts:83
_renderingVisualSections?
optional_renderingVisualSections?:Set<string>
Defined in: core/tooltip-controller.ts:84
_sectionKeydownHandler?
optional_sectionKeydownHandler?: (event) =>void
Defined in: core/tooltip-controller.ts:80
Parameters
event
Returns
void
_sectionToggleHandler?
optional_sectionToggleHandler?: (event) =>void
Defined in: core/tooltip-controller.ts:79
Parameters
event
Returns
void
_themeIntent?
optional_themeIntent?:string
Defined in: core/tooltip-controller.ts:78
_timingStart?
optional_timingStart?:number
Defined in: core/tooltip-controller.ts:85
_uniqueId?
optional_uniqueId?:string
Defined in: core/tooltip-controller.ts:77
_visualRenderPromise?
optional_visualRenderPromise?:Promise<void>
Defined in: core/tooltip-controller.ts:82
_visualsRendered?
optional_visualsRendered?:boolean
Defined in: core/tooltip-controller.ts:81
_visualViewportResizeHandler?
optional_visualViewportResizeHandler?: () =>void
Defined in: core/tooltip-controller.ts:96
Returns
void
arrow
readonlyarrow:HTMLDivElement
Defined in: core/tooltip-controller.ts:62
box
readonlybox:HTMLDivElement
Defined in: core/tooltip-controller.ts:60
content
readonlycontent:HTMLDivElement
Defined in: core/tooltip-controller.ts:61
options
options:
TooltipControllerOptions<TData>
Defined in: core/tooltip-controller.ts:72
reference
readonlyreference:Element
Defined in: core/tooltip-controller.ts:58
root
readonlyroot:HTMLDivElement
Defined in: core/tooltip-controller.ts:59
state
readonlystate:object
Defined in: core/tooltip-controller.ts:63
isDestroyed
isDestroyed:
boolean=false
isMounted
isMounted:
boolean=false
isShown
isShown:
boolean=false
isVisible
isVisible:
boolean=false
status
status:
TooltipStatus='idle'
Defined in: core/tooltip-controller.ts:70
theme
theme:
string
Defined in: core/tooltip-controller.ts:71
Methods
addNestedTooltip()
addNestedTooltip(
child):void
Defined in: core/tooltip-controller.ts:350
Parameters
child
TooltipController<any>
Returns
void
close()
close():
void
Defined in: core/tooltip-controller.ts:449
Explicitly dismiss this controller, including pinned dialogs.
Returns
void
destroy()
destroy():
void
Defined in: core/tooltip-controller.ts:386
Returns
void
destroyNestedTooltips()
destroyNestedTooltips():
void
Defined in: core/tooltip-controller.ts:364
Returns
void
dismiss()
dismiss():
void
Defined in: core/tooltip-controller.ts:302
Close this tooltip immediately, bypassing the interactive hide debounce and the pointer bridge that otherwise keep an open panel alive while the cursor drifts toward the next trigger. The engine calls this on the open siblings whenever a tooltip opens so only one top-level tooltip is visible at a time. Pinned tooltips and tooltips whose panel holds keyboard focus are left untouched — a focus on the trigger alone does not protect a peer dismissal.
The _peerDismissed flag marks this close as "lost to a sibling" so that hovering this tooltip's own panel cannot revive it (its panel may still be under the cursor, now covered by the sibling's panel). The flag is cleared once the tooltip is fully unmounted or genuinely reopens.
Returns
void
enter()
enter():
void
Defined in: core/tooltip-controller.ts:443
Explicitly enter a dialog from keyboard activation.
Returns
void
hasFocus()
hasFocus():
boolean
Defined in: core/tooltip-controller.ts:851
Returns
boolean
hide()
hide():
void
Defined in: core/tooltip-controller.ts:264
Returns
void
isDrawerPresentation()
isDrawerPresentation():
boolean
Defined in: core/tooltip-controller.ts:213
The resolved presentation currently used by this controller.
Returns
boolean
open()
open(
options?):void
Defined in: core/tooltip-controller.ts:427
Open immediately, optionally moving focus into the dialog.
Parameters
options?
TooltipOpenOptions = {}
Returns
void
removeNestedTooltip()
removeNestedTooltip(
child):void
Defined in: core/tooltip-controller.ts:358
Parameters
child
TooltipController<any>
Returns
void
setContent()
setContent(
content):void
Defined in: core/tooltip-controller.ts:317
Parameters
content
string
Returns
void
setPinned()
setPinned(
pinned):void
Defined in: core/tooltip-controller.ts:370
Parameters
pinned
boolean
Returns
void
setPresentation()
setPresentation(
presentation):void
Defined in: core/tooltip-controller.ts:218
Update the presentation setting, including a live auto breakpoint change.
Parameters
presentation
Returns
void
setTheme()
setTheme(
theme):void
Defined in: core/tooltip-controller.ts:326
Parameters
theme
string
Returns
void
show()
show():
void
Defined in: core/tooltip-controller.ts:245
Returns
void
syncPinButton()
syncPinButton():
void
Defined in: core/tooltip-controller.ts:753
Synchronize a rendered pin control with the controller's current state.
Returns
void
updateOptions()
updateOptions(
options):void
Defined in: core/tooltip-controller.ts:333
Parameters
options
Partial<Omit<TooltipControllerOptions<TData>, "tooltip">> & object
Returns
void
updatePosition()
updatePosition():
Promise<void>
Defined in: core/tooltip-controller.ts:346
Returns
Promise<void>
Interfaces
TooltipControllerHooks
Defined in: core/tooltip-controller.ts:20
Type Parameters
TData
TData
Properties
onDestroy?
optionalonDestroy?: (instance) =>void
Defined in: core/tooltip-controller.ts:24
Parameters
instance
TooltipController<TData>
Returns
void
onHide?
optionalonHide?: (instance) =>false|void
Defined in: core/tooltip-controller.ts:23
Parameters
instance
TooltipController<TData>
Returns
false | void
onShow?
optionalonShow?: (instance) =>false|void
Defined in: core/tooltip-controller.ts:21
Parameters
instance
TooltipController<TData>
Returns
false | void
onShown?
optionalonShown?: (instance) =>void
Defined in: core/tooltip-controller.ts:22
Parameters
instance
TooltipController<TData>
Returns
void
TooltipControllerOptions
Defined in: core/tooltip-controller.ts:27
Type Parameters
TData
TData
Properties
accessibleName?
optionalaccessibleName?:string
Defined in: core/tooltip-controller.ts:42
constrainToViewport?
optionalconstrainToViewport?:boolean
Defined in: core/tooltip-controller.ts:31
content?
optionalcontent?:string
Defined in: core/tooltip-controller.ts:28
hooks?
optionalhooks?:TooltipControllerHooks<TData>
Defined in: core/tooltip-controller.ts:37
interactiveBorder?
optionalinteractiveBorder?:number
Defined in: core/tooltip-controller.ts:34
interactiveDebounce?
optionalinteractiveDebounce?:number
Defined in: core/tooltip-controller.ts:35
kind?
optionalkind?:"dialog"|"tooltip"
Defined in: core/tooltip-controller.ts:41
maxHeight?
optionalmaxHeight?:number
Defined in: core/tooltip-controller.ts:33
maxWidth?
optionalmaxWidth?:number
Defined in: core/tooltip-controller.ts:32
parent?
optionalparent?:TooltipController<any>
Defined in: core/tooltip-controller.ts:36
presentation?
optionalpresentation?:TooltipPresentation
Defined in: core/tooltip-controller.ts:44
Presentation for top-level dialogs. Nested tooltips always use popovers.
theme
theme:
string
Defined in: core/tooltip-controller.ts:30
timingConfig?
optionaltimingConfig?:CoreTooltipConfig
Defined in: core/tooltip-controller.ts:40
tooltip
tooltip:
TooltipOptions
Defined in: core/tooltip-controller.ts:29
Type Aliases
TooltipStatus
TooltipStatus =
"idle"|"opening"|"open"|"closing"|"destroyed"
Defined in: core/tooltip-controller.ts:18
Functions
createStaticTooltip()
createStaticTooltip(
reference,content,options):TooltipController
Defined in: core/tooltip-controller.ts:1066
Parameters
reference
content
string
options
Omit<TooltipControllerOptions<unknown>, "content">