croz-ltd/tiller

DataTable onClick prop

Closed this issue · 0 comments

Basic information

  • Tiller version: latest
  • Module: data-display

Enhancement description

Expand DataTable actions by adding onClick prop which will enable adding custom actions when specific row in table is clicked.

Current behaviour

DataTable component currently does not have on click functionality but onDoubleClick action is enabled.

Wanted behaviour

onClick prop should be function that has parameter of type T (entity of clicked row in table) and returns void. Function should be called when user clicks on table row.