0.6.0 • Published 5 years ago
@pndr/checkbox-field v0.6.0
CheckboxField
Used for making a choice between yes and no.
Prop Types
Property | Type | Required? | Description |
---|---|---|---|
id | String | ✓ | Unique id for the instance of this field |
contextId | Context | ✓ | The appearance will change depending on context in which the field is displayed. Valid options include: recordDetail or recordGridRow or recordGalleryCard or recordListItem |
roleId | Role | ✓ | The behaviour changes based on the role. Valid options include editor or readOnly |
checked | Boolean | ✓ | Whether the checkbox is checked or not |
onChange | Function | Callback invoked whenever the checkbox get's toggled. : ({id: string, checked: boolean}): void |
More information
This component is designed and developed as part of Cosmos Design System.