Appearance
Classes
TooltipController
Defined in: core/tooltip-controller.ts:101
Type Parameters
TData
TData = unknown
Constructors
Constructor
new TooltipController<
TData>(reference,options):TooltipController<TData>
Defined in: core/tooltip-controller.ts:191
Parameters
reference
options
TooltipControllerOptions<TData>
Returns
TooltipController<TData>
Properties
_entityCacheKey?
optional_entityCacheKey?:string
Defined in: core/tooltip-controller.ts:120
_entityData?
optional_entityData?:TData|null
Defined in: core/tooltip-controller.ts:119
_isPinned?
optional_isPinned?:boolean
Defined in: core/tooltip-controller.ts:130
_isPointerInside?
optional_isPointerInside?:boolean
Defined in: core/tooltip-controller.ts:131
_nestedTooltips
_nestedTooltips:
TooltipController<any>[] =[]
Defined in: core/tooltip-controller.ts:118
_peerDismissed?
optional_peerDismissed?:boolean
Defined in: core/tooltip-controller.ts:138
_pinButton?
optional_pinButton?:HTMLElement|null
Defined in: core/tooltip-controller.ts:139
_renderedVisualSections?
optional_renderedVisualSections?:Set<string>
Defined in: core/tooltip-controller.ts:127
_renderingVisualSections?
optional_renderingVisualSections?:Set<string>
Defined in: core/tooltip-controller.ts:128
_sectionKeydownHandler?
optional_sectionKeydownHandler?: (event) =>void
Defined in: core/tooltip-controller.ts:124
Parameters
event
Returns
void
_sectionToggleHandler?
optional_sectionToggleHandler?: (event) =>void
Defined in: core/tooltip-controller.ts:123
Parameters
event
Returns
void
_themeIntent?
optional_themeIntent?:string
Defined in: core/tooltip-controller.ts:122
_timingStart?
optional_timingStart?:number
Defined in: core/tooltip-controller.ts:129
_uniqueId?
optional_uniqueId?:string
Defined in: core/tooltip-controller.ts:121
_visualRenderPromise?
optional_visualRenderPromise?:Promise<void>
Defined in: core/tooltip-controller.ts:126
_visualsRendered?
optional_visualsRendered?:boolean
Defined in: core/tooltip-controller.ts:125
_visualViewportResizeHandler?
optional_visualViewportResizeHandler?: () =>void
Defined in: core/tooltip-controller.ts:140
Returns
void
arrow
readonlyarrow:HTMLDivElement
Defined in: core/tooltip-controller.ts:106
box
readonlybox:HTMLDivElement
Defined in: core/tooltip-controller.ts:104
content
readonlycontent:HTMLDivElement
Defined in: core/tooltip-controller.ts:105
options
options:
TooltipControllerOptions<TData>
Defined in: core/tooltip-controller.ts:116
reference
readonlyreference:Element
Defined in: core/tooltip-controller.ts:102
root
readonlyroot:HTMLDivElement
Defined in: core/tooltip-controller.ts:103
state
readonlystate:object
Defined in: core/tooltip-controller.ts:107
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:114
theme
theme:
string
Defined in: core/tooltip-controller.ts:115
Methods
addNestedTooltip()
addNestedTooltip(
child):void
Defined in: core/tooltip-controller.ts:446
Parameters
child
TooltipController<any>
Returns
void
close()
close():
void
Defined in: core/tooltip-controller.ts:552
Explicitly dismiss this controller, including pinned dialogs.
Returns
void
destroy()
destroy():
void
Defined in: core/tooltip-controller.ts:484
Returns
void
destroyNestedTooltips()
destroyNestedTooltips():
void
Defined in: core/tooltip-controller.ts:460
Returns
void
dismiss()
dismiss():
void
Defined in: core/tooltip-controller.ts:395
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 are left untouched. Keyboard focus inside an unpinned panel is restored to its trigger as the panel closes, preserving focus while still enforcing the single-open-tooltip rule.
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:546
Explicitly enter a dialog from keyboard activation.
Returns
void
hasFocus()
hasFocus():
boolean
Defined in: core/tooltip-controller.ts:1533
Returns
boolean
hide()
hide():
void
Defined in: core/tooltip-controller.ts:356
Returns
void
isDrawerPresentation()
isDrawerPresentation():
boolean
Defined in: core/tooltip-controller.ts:289
The resolved presentation currently used by this controller.
Returns
boolean
open()
open(
options?):void
Defined in: core/tooltip-controller.ts:530
Open immediately, optionally moving focus into the dialog.
Parameters
options?
TooltipOpenOptions = {}
Returns
void
removeNestedTooltip()
removeNestedTooltip(
child):void
Defined in: core/tooltip-controller.ts:454
Parameters
child
TooltipController<any>
Returns
void
setContent()
setContent(
content):void
Defined in: core/tooltip-controller.ts:409
Parameters
content
string
Returns
void
setPinned()
setPinned(
pinned):void
Defined in: core/tooltip-controller.ts:466
Parameters
pinned
boolean
Returns
void
setPresentation()
setPresentation(
presentation):void
Defined in: core/tooltip-controller.ts:294
Update the presentation setting, including a live auto breakpoint change.
Parameters
presentation
Returns
void
setTheme()
setTheme(
theme):void
Defined in: core/tooltip-controller.ts:421
Parameters
theme
string
Returns
void
show()
show():
void
Defined in: core/tooltip-controller.ts:337
Returns
void
syncPinButton()
syncPinButton():
void
Defined in: core/tooltip-controller.ts:1187
Synchronize a rendered pin control with the controller's current state.
Returns
void
updateOptions()
updateOptions(
options):void
Defined in: core/tooltip-controller.ts:428
Parameters
options
Partial<Omit<TooltipControllerOptions<TData>, "tooltip">> & object
Returns
void
updatePosition()
updatePosition():
Promise<void>
Defined in: core/tooltip-controller.ts:442
Returns
Promise<void>
Interfaces
TooltipControllerHooks
Defined in: core/tooltip-controller.ts:26
Type Parameters
TData
TData
Properties
onDestroy?
optionalonDestroy?: (instance) =>void
Defined in: core/tooltip-controller.ts:30
Parameters
instance
TooltipController<TData>
Returns
void
onHide?
optionalonHide?: (instance) =>false|void
Defined in: core/tooltip-controller.ts:29
Parameters
instance
TooltipController<TData>
Returns
false | void
onShow?
optionalonShow?: (instance) =>false|void
Defined in: core/tooltip-controller.ts:27
Parameters
instance
TooltipController<TData>
Returns
false | void
onShown?
optionalonShown?: (instance) =>void
Defined in: core/tooltip-controller.ts:28
Parameters
instance
TooltipController<TData>
Returns
void
TooltipControllerOptions
Defined in: core/tooltip-controller.ts:33
Type Parameters
TData
TData
Properties
accessibleName?
optionalaccessibleName?:string
Defined in: core/tooltip-controller.ts:48
constrainToViewport?
optionalconstrainToViewport?:boolean
Defined in: core/tooltip-controller.ts:37
content?
optionalcontent?:string
Defined in: core/tooltip-controller.ts:34
hooks?
optionalhooks?:TooltipControllerHooks<TData>
Defined in: core/tooltip-controller.ts:43
interactiveBorder?
optionalinteractiveBorder?:number
Defined in: core/tooltip-controller.ts:40
interactiveDebounce?
optionalinteractiveDebounce?:number
Defined in: core/tooltip-controller.ts:41
kind?
optionalkind?:"dialog"|"tooltip"
Defined in: core/tooltip-controller.ts:47
maxHeight?
optionalmaxHeight?:number
Defined in: core/tooltip-controller.ts:39
maxWidth?
optionalmaxWidth?:number
Defined in: core/tooltip-controller.ts:38
parent?
optionalparent?:TooltipController<any>
Defined in: core/tooltip-controller.ts:42
presentation?
optionalpresentation?:TooltipPresentation
Defined in: core/tooltip-controller.ts:50
Presentation for top-level dialogs. Nested tooltips always use popovers.
theme
theme:
string
Defined in: core/tooltip-controller.ts:36
timingConfig?
optionaltimingConfig?:CoreTooltipConfig
Defined in: core/tooltip-controller.ts:46
tooltip
tooltip:
TooltipOptions
Defined in: core/tooltip-controller.ts:35
triggerStyle?
optionaltriggerStyle?:TooltipTriggerStyle
Defined in: core/tooltip-controller.ts:52
Explicitly managed for configured triggers; omitted nested controllers are untouched.
Type Aliases
TooltipStatus
TooltipStatus =
"idle"|"opening"|"open"|"closing"|"destroyed"
Defined in: core/tooltip-controller.ts:24
Functions
createStaticTooltip()
createStaticTooltip(
reference,content,options):TooltipController
Defined in: core/tooltip-controller.ts:1756
Parameters
reference
content
string
options
Omit<TooltipControllerOptions<unknown>, "content">