嵌套 Header 不适用于 Handsontable 反应组件
Nested Header is not working on Handsontable react component
我正在使用 @handsontable/react
组件。我无法为 table 提供嵌套的 header。我不确定这个插件是否支持nestedHeader
。
这是我的代码,
<HotTable root="hot" settings={{
data: this.props.data,
nestedHeaders: [
['Header1', { label: 'Header2', colspan: 8 }, 'C']
],
rowHeaders: true,
columns: this.getColumns(),
colHeaders: this.getHeaders(),
mergeCells: this.getDisplaySettings()
}} />
任何人请建议我如何在此 react-handsontable 组件上使用 nestedHeader。
嵌套headers是Handsontable PRO的特点。您需要 @handsontable-pro/react
组件。
我正在使用 @handsontable/react
组件。我无法为 table 提供嵌套的 header。我不确定这个插件是否支持nestedHeader
。
这是我的代码,
<HotTable root="hot" settings={{
data: this.props.data,
nestedHeaders: [
['Header1', { label: 'Header2', colspan: 8 }, 'C']
],
rowHeaders: true,
columns: this.getColumns(),
colHeaders: this.getHeaders(),
mergeCells: this.getDisplaySettings()
}} />
任何人请建议我如何在此 react-handsontable 组件上使用 nestedHeader。
嵌套headers是Handsontable PRO的特点。您需要 @handsontable-pro/react
组件。