renderMatches() function
Signature:
export function renderMatches(el: HTMLElement | DocumentFragment, text: string, matches: SearchMatches | null, offset?: number): void;Parameters
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | DocumentFragment | |
text | string | |
matches | SearchMatches | null | |
offset | number | (Optional) |
Returns:
void