tv-table
A ready-to-use table component
// install
npm i -S @thevelops/tv-table
How to
Example here.
Components
Docs
Table
import Table from "@thevelops/tv-table/dist/Table";
@import "path/to/node_modules/@thevelops/tv-table/dist/Table/style";
Field | Type | Description |
---|
headItems | array | (required) array of head items |
headOptions | array | array of head options |
className | string | |
withCheckBox | bool | default: false |
Head Items
Field | Type | Description |
---|
id | string | (required) |
label | string or object | |
onClick | func | |
Head Options
Field | Type | Description |
---|
className | string | |
onChange | func | onChange method for the check box. Required when withCheckBox is true. |
checked | bool | checked state for the check box. Required when withCheckBox is true. |
Table Row
import TableRow from "@thevelops/tv-table/dist/TableRow";
@import "path/to/node_modules/@thevelops/tv-table/dist/TableRow/style";
Field | Type | Description |
---|
id | string | (required) |
data | array | (required) |
className | string | |
onClick | func | |
checkboxOptions | object | required when withCheckBox is true |
chekboxOptions
Field | Type | Description |
---|
checked | bool | required |
onChange | func | required |
Development
For delevepment checkout this section.