mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1586] Added files for core services (#2529)
* [ADF-1586] Added files for core services * [ADF-1586] Fixed syntax error in example
This commit is contained in:
committed by
Popovics András
parent
f33284a2e3
commit
553c71c958
26
docs/text-highlight.pipe.md
Normal file
26
docs/text-highlight.pipe.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Text Highlight pipe
|
||||
|
||||
Adds highlighting to words or sections of text that match a search string.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```HTML
|
||||
<div>
|
||||
Some rude words have been detected in your summary: {{ summary | highlight:rudeWordList }}
|
||||
</div>
|
||||
```
|
||||
|
||||
## Details
|
||||
|
||||
The pipe's parameter is a string to search for in the text. Any occurrences of the string will
|
||||
be highlighted with added HTML (see the
|
||||
[Highlight Transform service](highlight-transform.service.md) for more information about how
|
||||
this is implemented). The parameter can contain spaces, in which case each separate "word" in the string will be highlighted individually.
|
||||
|
||||
<!-- Don't edit the See also section. Edit seeAlsoGraph.json and run config/generateSeeAlso.js -->
|
||||
<!-- seealso start -->
|
||||
## See also
|
||||
|
||||
- [Highlight directive](highlight.directive.md)
|
||||
- [Highlight transform service](highlight-transform.service.md)
|
||||
<!-- seealso end -->
|
Reference in New Issue
Block a user