@cmds/record-detail

0.6.0 • Public • Published

RecordDetail

npm package

Used for displaying a record in detail.

Prop Types

Property Type Required? Description
id String Unique id for the instance of this record
roleId Role The behaviour changes based on the role. Valid options include editor or readOnly
data Object Record data
fieldCount Number Number of fields in the detail
fieldGetter Function Return field data for a field at a given index ({index: int}): obj
cellGetter Function Return cell data for a given field ({fieldData: int}): obj
fieldRenderer Function Responsible for rendering a field given it's configuration: ({id: string, index: number, field: object}): jsx Learn more

More information

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

Readme

Keywords

Package Sidebar

Install

npm i @cmds/record-detail

Weekly Downloads

1

Version

0.6.0

License

MIT

Unpacked Size

194 kB

Total Files

8

Last publish

Collaborators

  • entercosmos