setHighlightedWords method

void setHighlightedWords(
  1. List<String> words
)

The TalkJS search feature includes the ability to highlight certain words in messages. Call this method to highlight certain words without having the user invoke the search feature. Call again with an empty array to disable highlighting.

Note: like the search feature, this option only works in TalkJS Premium and up.

Also see {@link ChatboxOptions.highlightedWords}

Implementation

external void setHighlightedWords(List<String> words);