我们正在使用react-data-grid(adazzle),并希望对桌子进行一些细化调整。
我们愿调整头盔,这样他们就在我们桌旁的两倍左右,就像这样:
我猜测,我们将从头盔部队中处理这一问题。 然而,由于该构成部分的文件零,关于如何进一步处理这一问题的想法是零的。
在一些论坛上,我找到了答案:
render() {
return (
<ReactDataGrid
onGridSort={this.handleGridSort}
columns={this._columns}
headerRowHeight={123}
rowGetter={this.rowGetter}
rowsCount={this.state.rows.length}
// rowRenderer={RowRenderer}
minHeight={500}/>);
}
有一个旗帜headerRowHala,你可以确定数字价值。
EDIT:
类似财产的情况现为column HeaderHels/code>。
例如,
<ReactDataGrid
...
columnHeaderHeight={123} />
如果有人需要,则5级推进剂称为“头盔”。
pass prop headerHeight to data grid like this headerHeight={yourdesiredheightinPX} by default height is 56px
• 在MUI DataGrid中提升哥伦赫纳德的高度
<StyledDataGrid
rows={rows}
columns={columns}
pageSize={10}
rowHeight={40} //for row height
headerHeight={28} // for columnHeader height
rowsPerPageOptions={[10]}
checkboxSelection
disableSelectionOnClick
experimentalFeatures={{ newEditingApi: true }}
components={{
BaseCheckbox: StyledCheckbox,
NoRowsOverlay: () => (
This is my first question, and english is not my first language, sorry if my question is hard to understand I was trying to make simple CRUD app with mysql database and react as the frontend, and i ...
I have two react apps, parent app and child app. and child app have an hash router. I have build the child app using npm run build, It creates build folder. That build folder moved into inside the ...
这是我的第一个问题,请与我一起回答。 I m从事一项SPA React项目,该项目跟踪农场及其相关床位,并可使用一些帮助。 我愿就......提供一些数据。
I want to print the selected value, and below is my option list: const vesselName = [ { value: 0 , label: ALBIDDA , }, { value: 1 , label: ALRUMEILA , }, { value: 2 ,...
I have this custom filter for date , filter button is working as expected but reset button is not working, can anyone help me,what s wrong here? Below is my code which contain handlesearch,handlereset ...
I am using react. I want to add a line break <br> between strings No results and Please try another search term. . I have tried No results.<br>Please try another search term. but ...
I am trying to make a POC with Rails5, action Cable, React and Rails and React DnD. The purpose is to make an app like trello but for an recruitment process. My front is in ReactJS. I have 3 ...