Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Specific date range in CalendarDatePickerDialog #200

Merged
merged 4 commits into from
Oct 14, 2015

Conversation

JozefCeluch
Copy link
Contributor

I added a new feature, where you can set specific dates to mark the range of the CalendarDatePickerDialog by using setDateRange() method. Current version only supports setting the range in years. Behavior of the original setYearRange() method was not changed.

The behavior is the following:

  • years and months that are outside of the range are not shown therefore they cannot be selected
  • if the range starts/ends somewhere in the middle of a month, the whole month is shown but days that are outside of the range cannot be selected and are displayed in a disabled color
  • dates that mark the range are inclusive and can be selected, so it is possible to create a range that has only one day in it

@fchauveau
Copy link
Member

Hi @dodkoC
Thx for this new feature, can you add a usage example in the sample app to show this feature in action ?

@JozefCeluch
Copy link
Contributor Author

Hey @fchauveau
I added the example, let me know if it's ok :)

@fchauveau
Copy link
Member

Hi @dodkoC
Thanks for your work.

I merge this, and i'm going to do some little change to allow to only set min or max limit.

fchauveau added a commit that referenced this pull request Oct 14, 2015
Specific date range in CalendarDatePickerDialog
@fchauveau fchauveau merged commit 0ad512f into code-troopers:master Oct 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants