0.4.0 • Published 5 years ago

@pndr/grid-view v0.4.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

GridView GridView

npm package

Used for displaying records in a grid like a spreadsheet.

GridView

Getting started

npm install @cmds/grid-view --save

Prop Types

PropertyTypeRequired?Description
idStringUnique id for the instance of this view
rowCountNumberThe amount of rows to be rendered
rowGetterFunctionReturn row data for the index ({index: number})
fieldRendererFunctionCallback invoked whenever one of the cells get's rendered: ({index: number}): jsx
fieldsArrayArray of fields to be displayed as columns

Field

PropertyTypeRequired?Description
idStringUnique id for the field
nameStringName to be displayed as column name

More information

This component is designed and developed as part of Cosmos Design System.