Skip to content
Gordon Smith edited this page Feb 15, 2018 · 3 revisions

Events

In the future events will be "discoverable" like [Published Properties](https://github.com/hpcc-systems/Visualization/wiki/Setting Properties) and will also be shown on the dermatology test page. The most common event is the "click" event, when fired it typically has the following params:

  • row: The entire row of data associated with the click: ["Math", 66, 72]
  • col: The column title associated with the click: "Year 1"
  • selected: true/false/undefined if the visualization supports a selected/deselected mode this value will be true or false.
<script>
    myCol
        .on("click", function (row, col, selected) {
            alert("row:  " + JSON.stringify(row) + ", col: " + col + ", selected:  " + selected);
        })
    ;
</script>