topcoat-data / topcoat-public

TopCoat components, visualizations and themes
MIT License
1 stars 3 forks source link

feat: add onCellClick to TTable #214

Closed benbarnett closed 1 year ago

benbarnett commented 1 year ago

What this does

Used initially for Insights work, we will use this callback to post a message to the parent (AppUI Insights page), which will then display additional context to the user. Hopefully this is generic enough for some other use cases as well.

Notes for the reviewer

Example usage:

If specified, reports can make use of this:

<TTable
  :onCellClick="({cellValue, row, column, table}) => { /* I was clicked! */ }"
/>

Missed anything?

More information

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots, including URL if applicable, for any front end change. GIFs are most welcome!