Skip to content

how to customize date field #666

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

Closed
sarojkumar14 opened this issue Oct 23, 2017 · 2 comments
Closed

how to customize date field #666

sarojkumar14 opened this issue Oct 23, 2017 · 2 comments
Milestone

Comments

@sarojkumar14
Copy link

how to set min and max value for date picker or how to set default date is today date

@koegel
Copy link
Member

koegel commented Oct 23, 2017

Setting a min/max on a JSON Schema is currently not supported, also see:
json-schema-org/json-schema-spec#99
In addition there is no support for this in the UI Schema, but there could be. I think this is a good idea, contributions welcome.
The UI Schema holds an "option" (object) property where such information could be stored:

  • minDate: date
  • maxDate: date

Concerning default values, you can just pre-initialize the JSON with the required default value and it will be data bound and therefore used in the control.

@koegel koegel added this to the Backlog milestone Oct 23, 2017
@sarojkumar14
Copy link
Author

sarojkumar14 commented Oct 23, 2017 via email

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

No branches or pull requests

3 participants