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

Pass an array as defaultDate #2830

Open
2 tasks done
Nayael opened this issue Jun 22, 2023 · 1 comment
Open
2 tasks done

Pass an array as defaultDate #2830

Nayael opened this issue Jun 22, 2023 · 1 comment

Comments

@Nayael
Copy link

Nayael commented Jun 22, 2023

Prerequisites

Proposal

Currently there is no way to initialize a picker with multiple dates, or with a range already selected.

The defaultDate option should take in an string or an array, so as to have a range initialized, instead of having to add it manually afterwards.

Motivation and context

Having encountered the problem myself, initializing a calendar with a range is a pain.

@Eonasdan
Copy link
Owner

Eonasdan commented Jul 3, 2023

If you set the input value to multiple dates. It should pick those up. Otherwise, if you want a programmatic way to set multiple values, this is how the picker does it.

I understand your use case. However, I don't think I could implement this right now.

@Eonasdan Eonasdan removed the State: Triage Tickets that need to be triaged. label Jul 3, 2023
@Eonasdan Eonasdan added this to the 7.0 milestone Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants