par*_*shm 5 javascript html5 reactjs react-data-grid
以下是我的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}
/>);
}
Run Code Online (Sandbox Code Playgroud)
使用下面的React数据网格:https : //github.com/adazzle/react-data-grid
我想以百分比形式传递宽度,这是如何使用React数据网格实现的。任何帮助,将不胜感激。谢谢