setHotwordStyle() is an example of this when the field that contains the hotwords is to be made part of a topic accordion.
In the above case, you MUST execute setHotwordStyle() on the field that contains the hotwords AFTER setting up (or creating) the topic accordion.
Why is this necessary?
setHotwordStyle() sets up event listeners along with hotword styles to achieve its results. These event listeners are destroyed when the topic accordion is created.
Related topic accordion functions:
- createTopicAccordion()
- createFoldingObj()