Quartz Headless docs/TooltipService

Search documentation

Type to search the documentation.

API: Primitives

TooltipService

Service reference for TooltipService.

Overview

Public methods

create

create(templateRef: TemplateRef<unknown>, viewContainerRef: ViewContainerRef, anchorEl: HTMLElement, config?: Partial<TooltipConfig>): OverlayRef

Creates a tooltip using OverlayService. Useful for programmatic control.

Parameter Type Optional Description
templateRef TemplateRef<unknown>
viewContainerRef ViewContainerRef
anchorEl HTMLElement
config Partial<TooltipConfig> Yes

createTextElement

createTextElement(text: string): HTMLElement

Creates a simple text tooltip element for string-based tooltips. Returns the HTMLElement that was created and appended to body.

Safe to call during SSR: returns a detached element so the tooltip can be positioned later in the browser without throwing on the server.

Parameter Type Optional Description
text string