0.2.0 • Published 7 years ago
@cmds/grid-view v0.2.0
GridView
Used for displaying records in a grid like a spreadsheet.

Getting started
npm install @cmds/grid-view --saveProp Types
| Property | Type | Required? | Description |
|---|---|---|---|
| id | String | ✓ | Unique id for the instance of this view |
| rowCount | Number | ✓ | The amount of rows to be rendered |
| rowGetter | Function | ✓ | Return row data for the index ({index: number}) |
| fieldRenderer | Function | ✓ | Callback invoked whenever one of the cells get's rendered: ({index: number}): jsx |
| fields | Array | ✓ | Array of fields to be displayed as columns |
Field
| Property | Type | Required? | Description |
|---|---|---|---|
| id | String | ✓ | Unique id for the field |
| name | String | ✓ | Name to be displayed as column name |
More information
This component is designed and developed as part of Cosmos Design System.