<ReactDataGrid
columns={[
{ key: 'time', name: 'time', width: 140, formatter: (props) => (<span>{props.value}</span>), sortable: true },
{ key: 'Size', name: 'Size', width: 80, formatter: (props) => (<span>{props.value}</span>) },
{ key: 'qaw', name: 'dash Value', width: 350 },
]}
rowGetter={this.rowGetter}
rowsCount={list.length}
emptyRowsView={() => (<div />)}
rowSelection={{
showCheckbox: true,
onRowsSelected: this.onVersionRowsSelect,
onRowsDeselected: this.onVersionRowsDeselect,
selectBy: {
indexes: this.state.selectedIndexes
}
}}
/>
以上是我的 react-data-grid 代码。我想在某些条件下禁用特定行的行选择,或者想禁用该特定行的复选框。
请让我知道如何实现。谢谢