Ниже мой код сетки Reactdata
this._columns = [
{
key: 'id',
name: 'ID',
width: 40
},
{
key: 'task',
name: 'Title',
width:100
},
{
key: 'priority',
name: 'Priority',
width:100
},
{
key: 'issueType',
name: 'Issue Type',
width:100
},
{
key: 'complete',
name: '% Complete',
width:100
},
{
key: 'startDate',
name: 'Start Date',
width:100
},
{
key: 'completeDate',
name: 'Expected Complete',
width:100
}
];
render() {
return (
<ReactDataGrid
columns={this._columns}
rowGetter={this.rowGetter}
rowsCount={this._rows.length}
minHeight={500}
minColumnWidth={120}
/>);
}
Использование приведенной ниже таблицы данных React:
https://github.com/adazzle/react-data-grid
Я хочу передать ширину в процентах, как мы можем достичь с помощью сетки данных React.
Любая помощь будет оценена.
Спасибо