Skip to content

Commit

Permalink
Merge pull request #317 from prolificinteractive/select_range_docs
Browse files Browse the repository at this point in the history
Update CUSTOMIZATION.md for select range feature
  • Loading branch information
ekchang committed May 24, 2016
2 parents b0cb278 + 3800a6c commit 529984b
Showing 1 changed file with 5 additions and 5 deletions.
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).

0 comments on commit 529984b

Please sign in to comment.