0.15.0 • Published 5 years ago

@pndr/link-to-another-record-field v0.15.0

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

LinkToAnotherRecordField LinkToAnotherRecordField

npm package

Used for linking to a foreign record.

Prop Types

PropertyTypeRequired?Description
idStringUnique id for the instance of this field
contextIdContextThe appearance will change depending on context in which the field is displayed. Valid options include: recordDetail or recordGridRow or recordGalleryCard or recordListItem
roleIdRoleThe behaviour changes based on the role. Valid options include editor or readOnly
recordCountNumberNumber of records linked
recordGetterFunctionCallback responsible for returning a data row given an index. ({index: int})
recordRendererFunctionResponsible for rendering a linked record. ({key: int, onClick: fn, onUnlink: fn, recordData: any, roleId: string}): jsx
onRecordClickFunctionCallback invoked whenever a linked record get's clicked: ({id: string, recordId: string}): void
onRecordUnlinkFunctionCallback invoked whenever the unlink button is clicked for a linked record.: ({id: string, recordId: string}): void

More information

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

0.15.0

5 years ago

0.14.0

5 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago