Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rsuite-table
Advanced tools
rsuite-table
是一个 React
实现的 <Table>
组件,主要特性有:
版本与状态
安装:
npm i rsuite-table --save
示例:
import react from 'react';
import ReactDOM from 'react-dom';
import { Table, Column, HeaderCell, Cell } from 'rsuite-table';
import 'rsuite-table/lib/less/index.less';
const dataList = [
{id:1, name:'a', email:'a@email.com',avartar:'...'},
{id:2, name:'b', email:'b@email.com',avartar:'...'},
{id:3, name:'c', email:'c@email.com',avartar:'...'}
];
const ImageCell = ({ rowData, dataKey, ...props }) => (
<Cell {...props}>
<img src={rowData[dataKey]} width="50" />
</Cell>
);
ReactDOM.render(
<Table data = {dataList} >
<Column width = {100} sort fixed resizable>
<HeaderCell>ID</HeaderCell>
<Cell dataKey="id"></Cell>
</Column>
<Column width = {100} sort resizable>
<HeaderCell>Name</HeaderCell>
<Cell dataKey="name"></Cell>
</Column>
<Column width = {100} sort resizable>
<HeaderCell>Email</HeaderCell>
<Cell dataKey="email"></Cell>
</Column>
<Column width = {100} resizable>
<HeaderCell>Avartar</HeaderCell>
<ImageCell dataKey="avartar"></ImageCell>
</Column>
</Table> ,
document.getElementById('mount')
);
2.0.0
loading
状态的支持编辑的表格
的示例FAQs
A React table component
The npm package rsuite-table receives a total of 66,639 weekly downloads. As such, rsuite-table popularity was classified as popular.
We found that rsuite-table demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.