react-jsonschema-form
react-jsonschema-form copied to clipboard
Field with only hours
Prerequisites
- [x] I have read the documentation;
- [x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
Description
I'm trying to set a hours fields. All I want is "date-time" field without the date. Only hours.
You can build your own widget for hours. Inspire yourself by existing widgets and include your widget like this:
const widgets = { hours };
const uiSchema = {
entityWithHours: { 'ui:widget': 'hours' }
};
// ...
<Form widgets={widgets} {...} uiSchema={uiSchema} {...} />
I would be willing to review a PR that added time
widgets to match the datetime
and date
widgets.
Related PR: #894