Tooltips
ID: vTooltips
| Type: Plugin
This plugin manages tooltips.
info
This plugin has a Registry
containing all registered
tooltips.
#
Setup- Basic
- Manager
#
Usage#
Create Tooltipinfo
See Tooltip
for the full API.
#
Update Tooltip#
Remove Tooltip#
Access Tooltip via Event#
Access Tooltip via Registry#
Propsautopilot
#
Type: boolean
| Default: true
In autopilot mode the plugin will control certain properties automatically. Set this to false
if you'd like to
control them yourself. Properties below contain an 'Auto' descriptor if they are part of this system.
isEnabled
#
Type: boolean
| Default: true
| Auto: true
Whether to render all tooltips in the DOM or not.
showHints
#
Type: boolean
| Default: true
Whether to show or hide hint
texts on all registered tooltips.
#
MethodsgetRegistry
#
Return Type: Registry
The plugin registry where Tooltip
instances are registered.
getTooltips
#
Return Type: Tooltip[]
All registered Tooltip
instances.
getTooltip
#
Parameters: (id: string)
| Return Type: Tooltip|undefined
The Tooltip
instance for the given id
.
createTooltip
#
Parameters: (id: string, target: HTMLElement)
| Return Type: Tooltip
Creates a Tooltip
instance, mounts it on the given target
, registers it under the given id
and
returns the instance.
removeTooltip
#
Parameters: (id: string)
Destroys the Tooltip
instance associated with the given id
and deregisters it.
getTooltipComponent
#
Return Type: TooltipConstructor
The Tooltip
component constructor.