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

[Feature] Allow setting minimum and maximum date/times for DateTimeDialog #63

Open
Nek-12 opened this issue Jun 25, 2023 · 3 comments
Open
Labels

Comments

@Nek-12
Copy link

Nek-12 commented Jun 25, 2023

Right now the datetime dialog supports only min year and max year, however a common use case is for example select a date in the future only or set boundaries on available values.
Proposed solution is to add minimum datetime and maximum datetime to date selection and datetime selection dialogs.

@yu502950715yang
Copy link

Right now the datetime dialog supports only min year and max year, however a common use case is for example select a date in the future only or set boundaries on available values. Proposed solution is to add minimum datetime and maximum datetime to date selection and datetime selection dialogs.

you can use like this
CalendarConfig(
yearSelection = true,
monthSelection = true,
style = CalendarStyle.MONTH,
boundary = LocalDate.of(2023, 5, 12)..uiState.currentDate
),
boundary is the range of dates that are displayed.

@Nek-12
Copy link
Author

Nek-12 commented Jun 27, 2023

I'm not talking about the calendar dialog, @yu502950715yang

@maxkeppeler
Copy link
Owner

I knew this would be a request sooner or later. 😆 I will work on it, but currently I have no free time left. I would like to see it as well.

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

3 participants