jupyter-widgets / ipydatagrid

Fast Datagrid widget for the Jupyter Notebook and JupyterLab
BSD 3-Clause "New" or "Revised" License
579 stars 51 forks source link

Alternating row background colours #412

Closed anvarbabul closed 1 year ago

anvarbabul commented 1 year ago

How do I identify a row number within a VegaExpr or python function passed to Expr?

Use case: I’d like to use the grid style row background colour to get banded rows.

anvarbabul commented 1 year ago

Disregard, found the example snippet that shows the cell.row % 2 ===0 method