|
1 | 1 | # TimePicker
|
2 | 2 |
|
3 |
| -React TimePicker |
| 3 | +React Time Picker Control. |
4 | 4 |
|
5 | 5 | [![NPM version][npm-image]][npm-url]
|
6 |
| -[![build status][travis-image]][travis-url] |
7 |
| -[![Test coverage][codecov-image]][codecov-url] |
| 6 | +[![build status][circleci-image]][circleci-url] |
| 7 | +[![Test coverage][coveralls-image]][coveralls-url] |
8 | 8 | [](https://david-dm.org/react-component/time-picker)
|
9 | 9 | [](https://david-dm.org/react-component/time-picker?type=dev)
|
10 | 10 | [![npm download][download-image]][download-url]
|
| 11 | +[](https://github.com/react-component/time-picker) |
11 | 12 |
|
| 13 | +[Storybook]: https://github.com/storybooks/press/blob/master/badges/storybook.svg |
12 | 14 | [npm-image]: http://img.shields.io/npm/v/rc-time-picker.svg?style=flat-square
|
13 | 15 | [npm-url]: http://npmjs.org/package/rc-time-picker
|
14 |
| -[travis-image]: https://img.shields.io/travis/react-component/time-picker.svg?style=flat-square |
15 |
| -[travis-url]: https://travis-ci.org/react-component/time-picker |
16 |
| -[codecov-image]: https://codecov.io/gh/react-component/time-picker/branch/master/graph/badge.svg |
17 |
| -[codecov-url]: https://codecov.io/gh/react-component/time-picker |
| 16 | +[circleci-image]: https://img.shields.io/circleci/react-component/time-picker.svg?style=flat-square |
| 17 | +[circleci-url]: https://circleci.com/gh/react-component/time-picker |
| 18 | +[coveralls-image]: https://img.shields.io/coveralls/react-component/time-picker.svg?style=flat-square |
| 19 | +[coveralls-url]: https://coveralls.io/r/react-component/time-picker?branch=maste |
| 20 | +[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square |
| 21 | +[node-url]: http://nodejs.org/download/ |
18 | 22 | [download-image]: https://img.shields.io/npm/dm/rc-time-picker.svg?style=flat-square
|
19 | 23 | [download-url]: https://npmjs.org/package/rc-time-picker
|
20 | 24 |
|
|
70 | 74 | | disabledSeconds | Function | - | disabled second options |
|
71 | 75 | | use12Hours | Boolean | false | 12 hours display mode |
|
72 | 76 | | hideDisabledOptions | Boolean | false | whether hide disabled options |
|
73 |
| -| onChange | Function | null | called when select a different value | |
74 |
| -| onAmPmChange | Function | null | called when select an am/pm value | |
| 77 | +| onChange | Function | null | called when time-picker a different value | |
| 78 | +| onAmPmChange | Function | null | called when time-picker an am/pm value | |
75 | 79 | | addon | Function | - | called from timepicker panel to render some addon to its bottom, like an OK button. Receives panel instance as parameter, to be able to close it like `panel.close()`.|
|
76 | 80 | | placement | String | bottomLeft | one of ['topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
|
77 | 81 | | transitionName | String | '' | |
|
|
83 | 87 | | secondStep | Number | 1 | interval between seconds in picker |
|
84 | 88 | | focusOnOpen | Boolean | false | automatically focus the input when the picker opens |
|
85 | 89 | | inputReadOnly | Boolean | false | set input to read only |
|
86 |
| -| inputIcon | ReactNode | | specific the select icon. | |
| 90 | +| inputIcon | ReactNode | | specific the time-picker icon. | |
87 | 91 | | clearIcon | ReactNode | | specific the clear icon. |
|
88 | 92 |
|
89 | 93 | ## Test Case
|
90 | 94 |
|
91 | 95 | ```
|
92 | 96 | npm test
|
93 |
| -npm run chrome-test |
94 | 97 | ```
|
95 | 98 |
|
96 | 99 | ## Coverage
|
|
0 commit comments