1.1.9 • Published 1 year ago

sub-rc-time-picker v1.1.9

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

TimePicker

React TimePicker

NPM version build status Test coverage gemnasium deps node version npm download

example

http://react-component.github.io/time-picker/

install

npm install rc-time-picker

Usage

import TimePicker from 'rc-time-picker';
import ReactDOM from 'react-dom';
ReactDOM.render(<TimePicker />, container);

API

TimePicker

NameTypeDefaultDescription
prefixClsStringprefixCls of this component
localeObjectimport from 'rc-time-picker/lib/locale/en_US'
disabledBooleanfalsewhether picker is disabled
openBooleanfalsecurrent open state of picker. controlled prop
defaultValueGregorianCalendarnulldefault initial value
valueGregorianCalendarnullcurrent value
placeholderString''time input's placeholder
showHourBooleanwhether show hour
showSecondBooleanwhether show second
formatterStringGregorianCalendarFormatter
disabledHoursFunctiondisabled hour options
disabledMinutesFunctiondisabled minute options
disabledSecondsFunctiondisabled second options
hideDisabledOptionsBooleanwhether hide disabled options
onChangeFunctionnullcalled when select a different value
placementStringbottomLeftone of 'left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'
transitionNameString''

License

rc-time-picker is released under the MIT license.