Provides a tooltip directive for the decaf-ts for-angular library.
Classes
- DecafTooltipDirective
The
DecafTooltipDirectiveis a standalone Angular directive bound to the[ngx-decaf-tooltip]attribute selector. It processes theTooltipConfigprovided via theoptionsinput, sanitizes the text, and appends a.dcf-tooltip<span>containing the sanitized full text to the host element. The directive also applies thedcf-tooltip-parentCSS 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
ITooltipConfigoptions, sanitizes the text, and updates the host element's content and tooltip span accordingly. Applies thedcf-tooltip-parentCSS 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.