Back to Floor
Event Handlers • Room 1

Event Handlers

Event Handlers in Splunk dashboards intercept user interactions like clicks, selections, and value changes to trigger dynamic behavior.

Using SplunkJS and the `mvc` library, developers can listen for click events on tables and charts. The handler receives the clicked row or data point, enabling custom logic.

Knowledge Check

Prove your understanding to clear the room (Rewards XP)
❤️❤️❤️
Question 1 of 1
In SplunkJS, which method is used to listen for a user clicking on a row in a table visualization?
AtableView.on("click:row", handler)
BtableView.onClick(handler)
CtableView.addEventListener("row_click", handler)
Ddocument.querySelector("table").onclick = handler