highlightText(words, caseSensitive, columns);
words. Array | String. Highlighted strings.
caseSensitive. Boolean. Optional parameter. Indicates whether string is case-sensitive. By default it is set to false - do not consider case.
columns. Array | Number. Optional parameter. Columns that must be highlighted.
The highlightText method highlights the specified strings in tree elements.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Highlight text containing the "node" string Tree.highlightText("node");
After executing the example the text in the first column containing the "node" string is highlighted.
Clear highlighting:
// Clear highlighting Tree.clearhighlightText();
See also: