0.10.0 • Published 4 years ago

@pndr/date-field v0.10.0

Weekly downloads
8
License
MIT
Repository
-
Last release
4 years ago

DateField DateField

npm package

Used for selecting a date and time.

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
dateFormatIdDateFormatFormat in which the date should be displayed / edited. Valid options include: european or friendly or local or us
includeTimeBooleanEnables displaying / editing the time
sameTimeZoneBooleanDisabling this option will format the date to the local time. Enabling it will display the time the same (in UTC) regardless of the locale of the user.
timeFormatIdTimeFormatDisplay time in 12 or 24 hour notation. Valid options include: 12 or 24
dateStringDate string in simplified extended ISO format (ISO 8601). Example: 2018-11-15T09:28:04.300Z
onChangeFunctionCallback invoked whenever the date get's changed. : ({id: string, date: string}): void

More information

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