C2 Table
Edit page
ChangelogGetting startedInstallBasic usageColumn GroupsExpandable rowsUsing RowContextPropsReadme

c2-table

Install

#for yarn
yarn add @clearc2/c2-table
# for npm
npm install @clearc2/c2-table

Basic usage

ID Name Role
1Mickey PattonPresident
2Kevin BullDeveloper

Column Groups

ID Name Role
First Last
1MickeyPattonPresident
2KevinBullDeveloper

Expandable rows

ID Name
+1Mickey Patton
+2Kevin Bull

Using RowContext

Use RowContext to access the following row attributes:

  • row (object)
  • index (number)
  • rowId (string)
  • expanded (boolean)
  • expand (function)
  • collapse (function)
  • toggleExpanded (function)
ID Name
+1Mickey Patton
+2Kevin Bull