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

Support 'zebra stripes' for rows or columns #499

Closed tfmark closed 7 months ago

tfmark commented 7 months ago

Issue number of the reported bug or feature request: #379

Describe your changes I've tried to tackle the issue by leveraging the DataGrid rowBackgroundColor/columnBackgroundColor functionality.

Testing performed I've tested locally spinning up a Jupyter lab per the instructions in the README.

Additional context rows: image columns: image dark mode: image

Note: The "zebra striping" terminology comes from the underlying DataGrid, I don't know if there is a better name for it, but I couldn't think of one :)

martinRenou commented 7 months ago

Great! Thanks for looking into implementing this!

Changes look great to me, just a suggestion, would horizontal_stripes and vertical_stripes be a better name?