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

DatePicker. Disable partiluclar dates #4124

Open
Kalita-Roman opened this issue Oct 18, 2021 · 2 comments
Open

DatePicker. Disable partiluclar dates #4124

Kalita-Roman opened this issue Oct 18, 2021 · 2 comments

Comments

@Kalita-Roman
Copy link

Is your feature request related to a problem? Please describe.

I would like to use DatePicker componten. But I can't find a way how to disable particular dates for selecting, like that. E.g. I would lika to set minDate="2021-10-12", maxDate="2021-10-28" and set dates 2021-10-22, 2021-10-23, 2021-10-26 as disabled to select.
image.
Might be this feature exists, but I missed it in the spec.

Describe the solution you'd like
It would be nice to have a property like disabledDates

<DatePicker
  maxDate="2021-10-28"
  minDate="2021-10-12"
  disabledDates=["2021-10-22", "2021-10-23", "2021-10-26"]
/>

or availableDates, which defines only available dates

<DatePicker
  availableDates=["2021-10-12", "2021-10-13", "2021-10-14", ...]
/>
@Lukas742
Copy link
Collaborator

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

@Lukas742 Lukas742 transferred this issue from SAP/ui5-webcomponents-react Oct 18, 2021
@nnaydenow nnaydenow self-assigned this Oct 18, 2021
@nnaydenow
Copy link
Contributor

Hi @ilhan007,

I rechecked the specifications and this case doesn't exists. The issue seems to be a feature request.

Regards,
Nayden

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

No branches or pull requests

5 participants