mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1769] Added JSDocs to services (#2937)
* [ADF-1769] Added JSDocs to services * Removed JSDoc return directives from doc comments
This commit is contained in:
committed by
Eugenio Romano
parent
b3955b3f6c
commit
68ded23c9a
@@ -21,6 +21,12 @@ export interface HightlightTransformResult {
|
||||
}
|
||||
export class HighlightTransformService {
|
||||
|
||||
/**
|
||||
* Searches for `search` string(s) within `text` and highlights all occurrences.
|
||||
* @param text Text to search within
|
||||
* @param search Text pattern to search for
|
||||
* @param wrapperClass CSS class used to provide highlighting style
|
||||
*/
|
||||
public highlight(text: string, search: string, wrapperClass: string = 'highlight'): HightlightTransformResult {
|
||||
let isMatching = false,
|
||||
result = text;
|
||||
|
Reference in New Issue
Block a user