Event-handlers
The last feature I should introduce (although there are many others, but space prevents me from mentioning them all) is event-handlers, which let you listen for and define responses to state changes and behavior, such as a mouse click or input form selection in a dashboard. This is accomplished using the <change> and <condition> elements in Simple XML within a control. The best explanation is an example, such as the following code, which creates a radio control to let you hide or display the Metrics Throughput panel. There are two <condition> elements that capture any changes to a new radio setting: one sets the token, the other unsets the show_panel token, which is used with a depends attribute in the <panel> element to control ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access