Skip to content

SiTooltipService documentation

A service to create tooltips for specific elements. Use this if the tooltip directive is not suitable. Must not be used outside element-ng.

Attributes and Methods

NameTypeDefaultDescription
createTooltip(...)
(config: { describedBy: string, element: ElementRef, injector: Injector, placement: ("auto" | "end" | "start" | "top" | "bottom"), tooltip: () => SiTooltipContent, tooltipContext: () => unknown }) => TooltipRefParameters
  • config: { describedBy: string, element: ElementRef, injector: Injector, placement: ("auto" | "end" | "start" | "top" | "bottom"), tooltip: () => SiTooltipContent, tooltipContext: () => unknown }

Types Documentation

TooltipRef is attached to a specific element. Use it to show or hide a tooltip for that element.
Properties
element: ElementRef
injector?: Injector
overlayRef: OverlayRef
subscription?: Subscription
Methods
destroy: () => void
hide: () => void
show: () => void

Except where otherwise noted, content on this site is licensed under MIT License.