iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
83 stars 23 forks source link

Table: selectable rows without checkbox column #509

Closed bentleyvk closed 2 years ago

bentleyvk commented 2 years ago

Several people already asked for selectable rows inside Table but without checkbox column when you click on the row, it is being selected. Use case: having Table of elements and selecting the row, selects corresponding element in the viewer. Related #155 Discussion https://github.com/iTwin/iTwinUI-react/discussions/508

bentleyvk commented 2 years ago

What do you about adding a prop to the table selectionMode?: 'multi' | 'single', multi would be a default one and with single we hide selection column and only row click would select the row.