inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.45k stars 57 forks source link

💡 Customize height of header row & filter row #413

Open patrick-y-pokeratlas opened 3 months ago

patrick-y-pokeratlas commented 3 months ago

I've got a design requirement for a header row height of 56px with a filter row height of 64px.

import people from './people'

const gridStyle = { minHeight: 550 } const headerProps = { style: { height: 56, background: 'tomato', color: 'white' } }

const columns = [ { name: 'id', header: 'Id', defaultVisible: false, type: 'number', defaultWidth: 80 }, { name: 'name', defaultFlex: 1, header: 'Name' }, { name: 'country', defaultFlex: 1, header: 'Country' }, { name: 'city', defaultFlex: 1, header: 'City' }, { name: 'age', type: 'number', defaultFlex: 1, header: 'Age ' } ]

const App = () => { return (

); }

export default () =>



- I was able to set the height of both the header row and the filter row by using css overrides (after a lot of searching through the source code), but the increased size blocks the first row of data (i.e. the data rows do not move down to accommodate the increased height)