the event listeners handle the events from UI components by defining the behavior after the event is triggered. We have several pre-defined event and the handlers as follows
save the selected index of a Gallery to the ctx with the given variable name.
clear
'next_word.click':{'goto':{'next_state':'learn_word_state','ctx_handler':{'learn_status':{'finished':{'info':'You have finished all words in this topic! Please have a quiz.'}}}},'update':'','clear': ['input_word_audio','word_pronounce_score','input_sent_audio','sent_pronounce_score'],},
perform some action given the value in the ctx. For example, the above code means when choice_0_button clicked, it will check the value of quiz_status and display some information.