react-toolbox/components/time_picker
@soyjavi 2423d09a4f Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
..
clock update webpack dev, test and build & update eslint rule 2015-10-23 16:11:40 +08:00
_config.scss Move the rest of components important property values to variables 2015-10-21 02:05:19 +02:00
dialog.jsx Babel to stage 2 and remove decorators 2015-10-22 01:31:17 +02:00
index.jsx update webpack dev, test and build & update eslint rule 2015-10-23 16:11:40 +08:00
readme.md Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
style.scss Move the rest of components important property values to variables 2015-10-21 02:05:19 +02:00

readme.md

TimePicker

var TimePicker = require('react-toolbox/components/time_picker');

var time = new Date();
time.setHours(17);
time.setMinutes(28);

// Initialized time picker with AM-PM format
<TimePicker format="ampm" value={time} />

Properties

Name Type Default Description
format String 24hr Format to display the clock. It can be 24hr or ampm.
value Date new Date() Datetime object with currrent time by default

Methods

getValue

Returns the value of the picker.

input_instance.getValue();