vmware-clarity / starters

A collection of starter applications built with Clarity. Each starter project contains minimal default configuration and code to run and develop an application for a specific technology.
https://clarity.design
MIT License
19 stars 7 forks source link

Row selection: Additions to demo app to help us understand UX related issues with controls in cells #91

Closed strefethen closed 2 years ago

strefethen commented 2 years ago

We should expand our row selection demo such that it includes input controls in cells to help us explore UX impact with regard to selection.

The ask here is to add a columns with a checkbox, button and text input respectively so we can work to understand if/how selection works under these circumstances and whether row selection makes sense under these real world conditions.

strefethen commented 2 years ago

Upon reviewing the Clarity documentation our docs state that selection is not recommended when the row contains other clickable items. We are not going to modify the grid to illustrate an unsupported condition.

https://clarity.design/documentation/datagrid/selection

Depending on the use case, you might want to allow selection when clicking anywhere in the grid row. Note that this is not recommended when the rows contain clickable items. For example, if your cells contain input, buttons, etc. it is best to avoid enabling whole row selection.