Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 2.28 KB

table.md

File metadata and controls

43 lines (38 loc) · 2.28 KB
import { Table } from '@ninetyine/react-table'


Table should be used when data is not retrieved from an API endpoint. It is also the basis for all other table components, such as AjaxTable which is built on top of this.

By default the table container has the class of react-dynamic-table.



Props

  • rows: Data to be rendered
  • Fields
  • Extras
    • header: Define if field headers should be displayed
    • footer: Define a table footer
    • actions: Define actions to be displayed at the end of each row
    • Page Limit
    • Pages
      • pages: Define a pagination pages control to be displayed
      • onPageChange: Define a page change callback
    • Checkboxes
      • rowIsChecked: Define a callback to determine if a row checkbox is checked
      • masterIsChecked: Define a callback to determine if the master checkbox is checked
      • onRowToggle: Define a row checkbox change callback
      • onMasterToggle: Define a master checkbox change callback