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

Update CUSTOMIZATION.md for select range feature #317

Merged
merged 1 commit into from
May 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/CUSTOMIZATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ You also have the possibility to use `tileWidth` and `tileHeight` separately. I

## Date Selection

We support three modes of selection: single, multiple, or none. The default is single selection.
The mode can be changed by calling `setSelectionMode()` and passing the appropriate constant (`SELECTION_MODE_NONE`, `SELECTION_MODE_SINGLE`, or `SELECTION_MODE_MULTIPLE`).
We support four modes of selection: single, multiple, range or none. The default is single selection.
The mode can be changed by calling `setSelectionMode()` and passing the appropriate constant (`SELECTION_MODE_NONE`, `SELECTION_MODE_SINGLE`, `SELECTION_MODE_RANGE` or `SELECTION_MODE_MULTIPLE`).
If you change to single selection, all selected days except the last selected will be cleared.
If you change to none, all selected days will be cleared.
If you change to none or range, all selected days will be cleared.

You can set an `OnDateSelectedListener` to listen for selections, make sure to take into account multiple calls for the same date and state.
You can set an `OnDateSelectedListener` to listen for selections, make sure to take into account multiple calls for the same date and state. In case of range selection, use `OnRangeSelectedListener` which returns the list of date from the range including first and last.
You can manually select or deselect dates by calling `setDateSelected()`.
Use `setSelectedDate()` to clear the current selection(s) and select the provided date.

Expand Down Expand Up @@ -140,4 +140,4 @@ There are three different text appearances you can set:
The header text appearance is used for the topbar month label.
The weekday is for the row of weekday labels, and date is for the individual days.

For date text appearance, make sure you respond to presses and states. [Read more here](CUSTOM_SELECTORS.md).
For date text appearance, make sure you respond to presses and states. [Read more here](CUSTOM_SELECTORS.md).