Skip to content

📑 A React table component. Support fixed columns, resizable columns, custom cells, tree Table, pagination.

License

Notifications You must be signed in to change notification settings

penghongbao/rsuite-table

 
 

Repository files navigation

#rsuite-table

Documents

Basic Example

import react from 'react';
import ReactDom from 'react-dom';
import { Table, Column, HeaderCell, Cell } from 'rsuite-table';


const dataList = [
    {id:1, name:'a', email:'a@email.com',iconURL:'...'},
    {id:1, name:'b', email:'b@email.com',iconURL:'...'},
    {id:1, name:'c', email:'c@email.com',iconURL:'...'}
];

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>

    </Table>
);

About

📑 A React table component. Support fixed columns, resizable columns, custom cells, tree Table, pagination.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.4%
  • CSS 11.6%