revolist / revogrid

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
https://rv-grid.com
MIT License
2.74k stars 171 forks source link

Add classes if uneven and odd rows for styling #367

Closed AtishaGarinMchd closed 1 month ago

AtishaGarinMchd commented 1 year ago

Describe the issue Data are divs and css selector nthchild for alternate row styling is not a proper solution due to virtual dom and transforms applied It could be possible to generate selectors based on attributes using data-row applied to cells, but that would be cumbersome

To Reproduce Any doc example.

A more straightforward solution would be appreciated through either: a per table prop pointing to a css-variable / 2 hex values / exposing a css class.

revolist commented 2 months ago

You can achieve this multiple ways, I would recommend to go with row classes property and apply it, other option to write your own plugin or use pro plugin v4+

revolist commented 1 month ago

Done for Pro version