React-data-grid: DataGrid - themes/styles

Created on 22 Feb 2017  路  6Comments  路  Source: adazzle/react-data-grid

Hello,

I would like to know if there is any recommended way how to style your DataGrid?
Do you support something like themes? Or should I just override your CSS styles?
Thank you

Most helpful comment

Hi @NathanBWaters, I do it like this: I wrapped the data grid in div with my own class name and every time I need to change css styles I use .my-special-class .react-data-grid... and override it without need of !important

All 6 comments

Up

+1

Can't figure out how to override their css styles...

Hi @NathanBWaters, I do it like this: I wrapped the data grid in div with my own class name and every time I need to change css styles I use .my-special-class .react-data-grid... and override it without need of !important

@martinnov92 thanks man!
I was using css modules so I needed to put :global .react-data-grid to make it work. 馃憤

@martinnov92 : Could you provide an example on how to apply custom styles by wrapping it in a div. I am new to reactjs>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KalKhera picture KalKhera  路  3Comments

JimLynchCodes picture JimLynchCodes  路  4Comments

jlarso11 picture jlarso11  路  3Comments

JordanBonitatis picture JordanBonitatis  路  4Comments

martinnov92 picture martinnov92  路  3Comments