c2-table
Install
#for yarnyarn add @clearc2/c2-table# for npmnpm install @clearc2/c2-table
Basic usage
| ID | Name | Role |
|---|---|---|
| 1 | Mickey Patton | President |
| 2 | Kevin Bull | Developer |
Column Groups
| ID | Name | Role | |
|---|---|---|---|
| First | Last | ||
| 1 | Mickey | Patton | President |
| 2 | Kevin | Bull | Developer |
Expandable rows
| ID | Name | |
|---|---|---|
| + | 1 | Mickey Patton |
| + | 2 | Kevin 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 | ||
|---|---|---|---|
| + | 1 | Mickey Patton | |
| + | 2 | Kevin Bull |