@bsol-oss/react-datatable5
TypeScript icon, indicating that this package has built-in type declarations

1.0.34 • Public • Published

React Datatable

Installation

npm install @tanstack/react-table @chakra-ui/react @bsol-oss/react-datatable5

Usage

DataTable

<DataTable columns={columns} data={data}>
  <Flex>
    <TablePagination />
    <EditViewButton />
    <EditFilterButton />
    <EditOrderButton />
    <PageSizeControl />
    <TableSelector />
    <GlobalFilter />
  </Flex>
  <Table>
    <TableHeader canResize />
    <TableBody />
    <TableFooter />
  </Table>
  <PageSizeControl />
  <TablePagination />
</DataTable>

DataTableServer

<DataTableServer
  columns={columns}
  url={"http://localhost:8333/api/v1/gpt/chat/history/all"}
>
  <Flex>
    <TablePagination />
    <EditViewButton />
    <EditFilterButton />
    <DensityToggleButton />
    <EditOrderButton />
    <PageSizeControl />
    <TableSelector />
    <GlobalFilter />
  </Flex>
  <Table>
    <TableHeader canResize />
    <TableBody />
    <TableFooter />
  </Table>
  <Flex>
    <TablePagination />
    <EditViewButton />
    <EditFilterButton />
    <EditOrderButton />
    <PageSizeControl />
    <TableSelector />
  </Flex>
</DataTableServer>

Example Url generated by the DataTableServer

GET http://localhost:8333/api/v1/gpt/chat/history/all?pagination={"offset":0,"rows":10}&sorting={}&where={}&searching=hello

Package Sidebar

Install

npm i @bsol-oss/react-datatable5

Weekly Downloads

446

Version

1.0.34

License

MIT

Unpacked Size

98.8 kB

Total Files

37

Last publish

Collaborators

  • jacky-ng-w3b
  • wilgod
  • kimwongw3b
  • jyotipadhi
  • omiq17
  • rossbsol