Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a DateTimeWidget component #114

Closed
n1k0 opened this issue Apr 4, 2016 · 3 comments
Closed

Add a DateTimeWidget component #114

n1k0 opened this issue Apr 4, 2016 · 3 comments
Labels

Comments

@n1k0
Copy link
Collaborator

n1k0 commented Apr 4, 2016

UI could be simply 6 select inputs for setting year, month, day, hour, minutes and seconds values. Or alternatively a single text input with some supplementary bidirectional format transformation.

Note that the legit format received from and exposed to formData should always be the JSON compatible date format (eg. new Date().toJSON()).

@n1k0 n1k0 added the question label Apr 4, 2016
@n1k0
Copy link
Collaborator Author

n1k0 commented Apr 4, 2016

This is blocked by tdegrunt/jsonschema#169 as the date-time schema type doesn't seem to be supported by the jsonschema lib we use.

@n1k0 n1k0 added the blocked label Apr 4, 2016
@n1k0
Copy link
Collaborator Author

n1k0 commented Apr 4, 2016

My mistake, date-time is a JSONSchema string format, not a type. Unblocked.

@n1k0 n1k0 removed the blocked label Apr 4, 2016
@n1k0 n1k0 changed the title Add a DateTimeField component Add a DateTimeWidget component Apr 4, 2016
@n1k0
Copy link
Collaborator Author

n1k0 commented Apr 4, 2016

Actually JSON datetime format being a perfectly valid format, we can definitely start with implementing support for a simple text field, expecting users to enter a valid JSON datetime string.

We shall iterate to improve the user experience later on, the first priority here being to support the format keyword for datetimes first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant