You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### `isDayInRange(day: date, range: object<from: ?date, to: ?date>) -> bool`
48
47
49
-
Returns `true` if `day` is included in the specified range of days. See the [range examples](http://www.gpbl.org/react-day-picker/#examples/range) for an example using this function.
48
+
Returns `true` if `day` is included in the specified range of days. See the [range example](http://www.gpbl.org/react-day-picker/#examples/range) for an example using this function.
Copy file name to clipboardExpand all lines: docs/GettingStarted.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,20 +146,20 @@ then, the click handler stops the interaction when the day contains the `isSunda
146
146
147
147
```javascript
148
148
handleDayClick(e, day, modifiers) {
149
-
if (modifiers.indefOf("isDisabled") >-1) {
149
+
if (modifiers.indexOf("isDisabled") >-1) {
150
150
return;
151
151
}
152
152
// etc.
153
153
}
154
154
155
155
```
156
156
157
-
### Use the included utilities to simplify the code
157
+
### Use DateUtils to simplify the code
158
158
159
-
react-day-picker comes with some utilities to simplify the creation of modifiers. For example, [dateUtils](DateUtils.md) contains a function called `isSameDay` useful to detect if two days are the same. We can use it for the `selected` modifier:
159
+
react-day-picker includes [DateUtils](DateUtils.md), a function library to simplify the creation of modifiers. For example, we can use `isSameDay()` to detect if two days are the same. We can use it for the `selected` modifier:
Copy file name to clipboardExpand all lines: docs/LocaleUtils.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,11 @@
1
-
# localeUtils
1
+
# LocaleUtils
2
2
3
-
`localeUtils` is a set of functions used to work with localization. See also [Custom localization](LocalizationCustom.md).
3
+
`LocaleUtils` is a set of functions used to localize the component (see: [Custom localization](LocalizationCustom.md)). You may want to implement your own `LocaleUtils`, or override some of its functions.
4
4
5
-
Usually, you want to implement your own `localeUtils`, or override the behavior of some of its functions. For example, the following code will render the month title as `M/YYYY` instead of the default:
5
+
For example, this code renders the month's title as `M/YYYY` instead of the default:
0 commit comments