Function: highlightSubstring()
highlightSubstring(
text,substring,highlightProps):Element
Defined in: widgets/utility/listElementView.tsx:140
Renders a text span with all occurrences of the specified sub-string highlighted.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
|
|
| source text to display |
|
|
| sub-string to highlight each instance of inside the |
|
|
| props to pass to each |
Returns
Element