setHotwordStyle() and topic accordions

Help for using specific functions

setHotwordStyle() and topic accordions

Postby Clifton » Mon Jan 20, 2014 5:42 pm

Some functions achieve better results if a certain order of execution is obeyed.
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()
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to Function Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron