1.0.9 • Published 9 years ago

react-simple-time-picker v1.0.9

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

React Simple Time picker

A Simple time picker for react (No Calendar, Just Days, hours and Minutes)...Based on Bootstrap3

picker

Installation

npm install react-simple-time-picker --save

Usage

import SimpleTimePicker from 'react-simple-time-picker'

var PollForm = React.createClass({

  getInitialState: function(e){
    return {date: ''};
  },

  onDateChange: function(date){
    /* date is a js Date object */

    //this.setState({date: close_date});
    console.log(date);
  },

  render: function(){

    return (
        <SimpleTimePicker days="7" onChange={this.onDateChange} />
    );
  }
});

You can set days to any number of days you want.

The returned value is a Javascript Date object.

Client-side usage

There's also an included webpack bundle for use on the client side, you can use like this:

var SimpleTimePicker = ReactSimpleTimePicker.SimpleTimePicker;

To rebuild the bundle, install all the dependencies with:

npm install

and run webpack

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago