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") }) => TooltipRefParameters
  • config: { describedBy: string, element: ElementRef, injector: Injector, placement: ("auto" | "end" | "start" | "top" | "bottom") }

Types Documentation

TooltipRef is attached to a specific element. Use it to show or hide a tooltip for that element.
Properties
describedBy: string
element: ElementRef
injector?: Injector
overlayRef: OverlayRef
Methods
destroy: () => void
hide: () => void
(content: (Type<any> | TemplateRef<any> | TranslatableString), tooltipContext: unknown) => void
Parameters
content: (Type<any> | TemplateRef<any> | TranslatableString)
tooltipContext?: unknown
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality.
Translatable
import

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