|
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 |
|
|
57 | 61 | | value | moment | null | current value | |
58 | 62 | | placeholder | String | '' | time input's placeholder | |
59 | 63 | | className | String | '' | time picker className | |
| 64 | +| inputClassName | String | '' | time picker input element className | |
60 | 65 | | id | String | '' | time picker id | |
61 | 66 | | popupClassName | String | '' | time panel className | |
62 | 67 | | popupStyle | object | {} | customize popup style |
|
69 | 74 | | disabledSeconds | Function | - | disabled second options | |
70 | 75 | | use12Hours | Boolean | false | 12 hours display mode | |
71 | 76 | | hideDisabledOptions | Boolean | false | whether hide disabled options | |
72 | | -| onChange | Function | null | called when select a different value | |
73 | | -| 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 | |
74 | 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()`.| |
75 | 80 | | placement | String | bottomLeft | one of ['topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | |
76 | 81 | | transitionName | String | '' | | |
|
82 | 87 | | secondStep | Number | 1 | interval between seconds in picker | |
83 | 88 | | focusOnOpen | Boolean | false | automatically focus the input when the picker opens | |
84 | 89 | | inputReadOnly | Boolean | false | set input to read only | |
85 | | -| inputIcon | ReactNode | | specific the select icon. | |
| 90 | +| inputIcon | ReactNode | | specific the time-picker icon. | |
86 | 91 | | clearIcon | ReactNode | | specific the clear icon. | |
87 | 92 |
|
88 | 93 | ## Test Case |
89 | 94 |
|
90 | 95 | ``` |
91 | 96 | npm test |
92 | | -npm run chrome-test |
93 | 97 | ``` |
94 | 98 |
|
95 | 99 | ## Coverage |
|
0 commit comments