0.0.10 • Published 7 years ago

rc-timepicker v0.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

#rc-timepicker

A simple react component for selecting times.

rc-timepicker in action

Install

npm install rc-timepicker --save 

##Usage

//es6 imports
import TimePicker from 'rc-timepicker'
import 'rc-timepicker/lib/css/styles.css'

//CommonJS
var TimePicker = require('rc-timepicker')
require('rc-timepicker/lib/css/styles.css')
<TimePicker getTime={(time) => this.handleTime(time)} />

###Props

PropTypeUsage
getTimeFunctionA function to extract the selected time. Returns a single value
buttonLabelStringA custom label for the button.
buttonClassStringYour CSS class for custom button styles.
dateObject (moment)Pass your moment date object into the time picker to calculate past hours.
disablePastHoursBooleanDisable hours that have passed if date is today.
onClickFunctionFunction to handle button click

##Demo

Demo coming soon

0.0.10

7 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago