google / mesop

Rapidly build AI apps in Python
https://google.github.io/mesop/
Apache License 2.0
5.34k stars 258 forks source link

Allow styling of table component rows/columns #160

Open richard-to opened 5 months ago

richard-to commented 5 months ago

Need to determine a way to enable styling of table rows/columns.

Some use cases from user feedback:

  1. Highlight selected row / cell
  2. Alternate coloring of rows

There are are also other use cases for being able to control color, such as if a cell coloring based on the value.

zacharias1219 commented 3 months ago

Can we use state-driven styling for this??

aperepel commented 3 months ago

Additional use cases:

Most interested in eventually having the 'expandable row' feature from https://material.angular.io/components/table/examples

This should help tremendously with the master/detail workflows.

ghchinoy commented 2 months ago

Table rows are currently centered horizontally, it would be good to be able to change the alignment, too, to top or bottom