Rémi
2016-11-15 c306f2fcc9b08aef38a246f94949826965ff66c1
refs
author Rémi <remi.michel38@gmail.com>
Tuesday, November 15, 2016 23:25 +0100
committer Simon Egersand <s.egersand@gmail.com>
Tuesday, November 15, 2016 23:25 +0100
commitc306f2fcc9b08aef38a246f94949826965ff66c1
tree 47795d49aee1c39c27cc02c2f117d9a2348bc202 tree | zip | gz
parent 701646f762c88010b3647e1f40fcd6ba04b1404d view | diff
Add support for disabling months and years according to isValidDate

* disable months according to isValidDate function

* deactivate click on disabled month

* pass unit tests (month view)

* disable years according to isValidDate props function

* add example valid date with a view month

* add unit tests
4 files modified
59 ■■■■■ changed files
example/example.js 8 ●●●● diff | view | raw | blame | history
src/MonthsView.js 16 ●●●● diff | view | raw | blame | history
src/YearsView.js 17 ●●●● diff | view | raw | blame | history
tests/datetime-spec.js 18 ●●●●● diff | view | raw | blame | history