Skip to content
Gordon Smith edited this page Oct 8, 2015 · 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. For now we wiThe most common event is the "click" event, when fired it typically has the following params:

  • row: The entore 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>
Clone this wiki locally