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

docs(DatePicker, TimePicker): explain constraint validation #6537

Merged
merged 34 commits into from
Sep 17, 2024

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Aug 12, 2024

Description

  • Give a general description of how the constraint validation works, including such aspects as validation triggers, constraints, error messages, Binder, manual validation.
  • For setErrorMessage, mention i18n as the means for setting distinct error messages.
  • For setErrorMessage, explain that the error message will be only displayed when the field is
  • For constraint methods like setMin, setMax, mention that they are inclusive.

Part of #6545

Type of change

  • Docs

@vursen vursen changed the title docs(DatePicker): add brief introduction into constraint validation docs(DatePicker): explain how to manage constraint validation Aug 12, 2024
@vursen vursen force-pushed the improve-date-picker-validation-docs branch from 86a234a to 4da7850 Compare August 12, 2024 12:59
@vursen vursen marked this pull request as ready for review August 12, 2024 13:03
@vursen vursen requested a review from rolfsmeds August 12, 2024 13:03
@vursen vursen force-pushed the improve-date-picker-validation-docs branch from d1efaec to 41bec0b Compare August 13, 2024 05:25
…n/java/com/vaadin/flow/component/datepicker/DatePicker.java
…n/java/com/vaadin/flow/component/datepicker/DatePicker.java
…n/java/com/vaadin/flow/component/datepicker/DatePicker.java
…n/java/com/vaadin/flow/component/datepicker/DatePicker.java
…n/java/com/vaadin/flow/component/datepicker/DatePicker.java
Copy link
Contributor

@rolfsmeds rolfsmeds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comments in the corresponding TextField PR :)

@vursen
Copy link
Contributor Author

vursen commented Aug 26, 2024

See my comments in the corresponding TextField PR :)

Updated DatePicker based on the TextField PR.

@vursen vursen requested a review from rolfsmeds August 27, 2024 06:50
@vursen vursen changed the title docs(DatePicker): explain how to manage constraint validation docs(DatePicker, TimePicker): explain how to manage constraint validation Sep 2, 2024
@vursen vursen changed the title docs(DatePicker, TimePicker): explain how to manage constraint validation docs(DatePicker, TimePicker): explain constraint validation Sep 2, 2024
@vursen vursen enabled auto-merge (squash) September 17, 2024 09:34
@vursen vursen removed the request for review from yuriy-fix September 17, 2024 10:03
Copy link

sonarcloud bot commented Sep 17, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
22.0% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

@vursen vursen merged commit 932ae68 into main Sep 17, 2024
4 of 5 checks passed
@vursen vursen deleted the improve-date-picker-validation-docs branch September 17, 2024 12:23
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

Successfully merging this pull request may close these issues.

3 participants