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

Make Previous dates disabled #3

Open
adrshk opened this issue Nov 3, 2018 · 4 comments
Open

Make Previous dates disabled #3

adrshk opened this issue Nov 3, 2018 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@adrshk
Copy link

adrshk commented Nov 3, 2018

There should be a flag to disable the selection of previous dates.

For example, if today is 03 Nov 2018 then one should not be able to select the date previous than 3rd Nov.

thanks.

@priyank-p
Copy link
Owner

Agreed, I will work on it @adrshk!

@priyank-p priyank-p added the enhancement New feature or request label Nov 3, 2018
@priyank-p priyank-p assigned priyank-p and unassigned priyank-p Nov 3, 2018
@priyank-p
Copy link
Owner

Unfortunately, I don't have time to work on this currently! I can start working on it this weekend (This is on my todolist).

(@adrshk this should be hard to implement, so if you could work on it and create a PR I can merge and create a new release.)

@priyank-p priyank-p added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 11, 2018
@priyank-p priyank-p pinned this issue Jan 3, 2019
@priyank-p priyank-p unpinned this issue Jul 10, 2020
@David-dp-
Copy link

Can you suggest where in the code would be a good place to add support for enabling a selected range of dates? For example, other date-picker libraries allow configuring either a start date or end date or both. I scanned index.ts but didn't spot an obvious place to insert enforcement of such config.

(Similarly, is there a way to configure a default time? And where can one provide localized strings for month names?)

@priyank-p
Copy link
Owner

@David-dp- The render method in the index.ts is the main place where rendering happens. But, for what you are trying to do, you need to update the scrape methods in date-util.ts to support ranges. If you want to work on providing an API for month names date-util.ts is also the place.

For passing the default time, the selectedDate option should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants