UNPKG

design-angular-kit

Version:

Un toolkit Angular conforme alle linee guida di design per i servizi web della PA

19 lines (18 loc) 836 B
import { PipeTransform } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import * as i0 from "@angular/core"; /** * Allows you to highlight text with the <mark> tag */ export declare class ItMarkMatchingTextPipe implements PipeTransform { private readonly domSanitizer; constructor(domSanitizer: DomSanitizer); /** * Allows you to highlight text with the <mark> tag * @param allString the full text to search from * @param searchString the string to search */ transform(allString: string | undefined, searchString: string | number | null | undefined): SafeHtml | string | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<ItMarkMatchingTextPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<ItMarkMatchingTextPipe, "itMarkMatchingText", true>; }