English 中文(简体)
Al 头顶
原标题:Alter Column Header height

我们正在使用react-data-grid(adazzle),并希望对桌子进行一些细化调整。

我们愿调整头盔,这样他们就在我们桌旁的两倍左右,就像这样:

enter image description here

我猜测,我们将从头盔部队中处理这一问题。 然而,由于该构成部分的文件零,关于如何进一步处理这一问题的想法是零的。

问题回答

在一些论坛上,我找到了答案:

  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: () => (




相关问题
How to use one react app into another react app?

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 ...

how to get selected value in Ant Design

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 ,...

How to add a <br> tag in reactjs between two strings?

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 ...