0.15.0 • Published 5 years ago

@pndr/number-field v0.15.0

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

NumberField NumberField

npm package

Used for entering a number.

Getting started

npm install @cmds/number-field --save

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
precisionIdNumberPrecisionDisplay and edit x amount of numbers after the point. Precision ID of 2 will result in 2.25. Valid options include 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8
allowNegativeNumbersBooleanEnable displaying / editing negative numbers
numberFormatIdNumberFormatWhether the number should be displayed / edited as an integer or decimal. Valid options include decimal or integer
numberNumberNumber value
onChangeFunctionCallback invoked whenever number changes: ({id: string, number: number}): 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.11.0

5 years ago