diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-12-12 20:34:00 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-12-12 20:34:00 +0800 |
commit | 518b852e8bd9c50a6c5c7e84cddecb5c94ebb5b6 (patch) | |
tree | 664ef5377589dc3c4def7e732dfaa76e89da1fb1 /README.md | |
parent | 182e9fccc90ae709322b7cc314c8775a9d8d46b8 (diff) | |
download | time-picker-518b852e8bd9c50a6c5c7e84cddecb5c94ebb5b6.tar.gz time-picker-518b852e8bd9c50a6c5c7e84cddecb5c94ebb5b6.tar.zst time-picker-518b852e8bd9c50a6c5c7e84cddecb5c94ebb5b6.zip |
add new options about disabled time
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -39,7 +39,6 @@ Usage | |||
39 | 39 | ||
40 | ``` | 40 | ``` |
41 | import TimePicker from 'rc-time-picker'; | 41 | import TimePicker from 'rc-time-picker'; |
42 | import React from 'react'; | ||
43 | import ReactDOM from 'react-dom'; | 42 | import ReactDOM from 'react-dom'; |
44 | ReactDOM.render(<TimePicker />, container); | 43 | ReactDOM.render(<TimePicker />, container); |
45 | ``` | 44 | ``` |
@@ -49,25 +48,26 @@ API | |||
49 | 48 | ||
50 | ### TimePicker | 49 | ### TimePicker |
51 | 50 | ||
52 | | Name | Type | Default | Description | | 51 | | Name | Type | Default | Description | |
53 | |----------------|----------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------| | 52 | |-------------------------|-----------------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------| |
54 | | prefixCls | String | | prefixCls of this component | | 53 | | prefixCls | String | | prefixCls of this component | |
55 | | locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | | 54 | | locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | |
56 | | disabled | Boolean | false | whether picker is disabled | | 55 | | disabled | Boolean | false | whether picker is disabled | |
57 | | open | Boolean | false | current open state of picker. controlled prop | | 56 | | open | Boolean | false | current open state of picker. controlled prop | |
58 | | defaultValue | GregorianCalendar | null | default initial value | | 57 | | defaultValue | GregorianCalendar | null | default initial value | |
59 | | value | GregorianCalendar | null | current value | | 58 | | value | GregorianCalendar | null | current value | |
60 | | gregorianCalendarLocale | GregorianCalendar locale object | null | if value and defaultValue not set, you should set this to your locale | | 59 | | gregorianCalendarLocale | GregorianCalendar locale object | null | if value and defaultValue not set, you should set this to your locale | |
61 | | placeholder | String | '' | time input's placeholder | | 60 | | placeholder | String | '' | time input's placeholder | |
62 | | showHour | Boolean | whether show hour | | | 61 | | showHour | Boolean | whether show hour | | |
63 | | showSecond | Boolean | whether show second | | | 62 | | showSecond | Boolean | whether show second | | |
64 | | formatter | String|GregorianCalendarFormatter | | | | 63 | | formatter | String|GregorianCalendarFormatter | | | |
65 | | hourOptions | Array<Number> | hour options | | | 64 | | disabledHours | Array<Number> | disabled hour options | | |
66 | | minuteOptions | Array<Number> | minute options | | | 65 | | disabledMinutes | Array<Number> | disabled minute options | | |
67 | | secondOptions | Array<Number> | second options | | | 66 | | disabledSeconds | Array<Number> | disabled second options | | |
68 | | onChange | Function | null | called when select a different value | | 67 | | hideDisabledOptions | Boolean | whether hide disabled options | | |
69 | | placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | | 68 | | onChange | Function | null | called when select a different value | |
70 | | transitionName | String | '' | | | 69 | | placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | |
70 | | transitionName | String | '' | | | ||
71 | 71 | ||
72 | License | 72 | License |
73 | ------- | 73 | ------- |