@universal-material/angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.0.
25 lines (24 loc) • 1.05 kB
TypeScript
import { OnChanges, SimpleChanges } from '@angular/core';
import * as i0 from "@angular/core";
/**
* A component that can be used inside a custom result template in order to highlight the term inside the text of the
* result
*/
export declare class Highlight implements OnChanges {
parts: string[];
/**
* The CSS class of the span elements wrapping the term inside the result
*/
highlightClass: string;
/**
* The result text to display. If the term is found inside this text, it's highlighted
*/
result?: string | null;
/**
* The searched term
*/
term: string | readonly string[];
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<Highlight, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Highlight, "u-legacy-highlight", never, { "highlightClass": { "alias": "highlightClass"; "required": false; }; "result": { "alias": "result"; "required": false; }; "term": { "alias": "term"; "required": false; }; }, {}, never, never, false, never>;
}