Module

DecafTooltipDirective

Provides a tooltip directive for the decaf-ts for-angular library.

View Source lib/directives/tooltip.directive.ts, line 8

Classes

DecafTooltipDirective

The DecafTooltipDirective is a standalone Angular directive bound to the [ngx-decaf-tooltip] attribute selector. It processes the TooltipConfig provided via the options input, sanitizes the text, and appends a .dcf-tooltip <span> containing the sanitized full text to the host element. The directive also applies the dcf-tooltip-parent CSS class to the host for tooltip positioning. When truncation is enabled, the host element's inner content is replaced with the truncated text before the tooltip span is added.

DecafTooltipDirective

Processes the ITooltipConfig options, sanitizes the text, and updates the host element's content and tooltip span accordingly. Applies the dcf-tooltip-parent CSS class to the host for styling.

Interfaces

ITooltipConfig

Defines the shape of the options accepted by the [ngx-decaf-tooltip] attribute selector. Controls the tooltip text content, whether visible text should be truncated, the character limit for truncation, and the trailing string appended after a cut.