react-toolbox/components/date_picker
Javi Velasco 7c87940c8f Improve markdown format 2015-10-31 21:55:12 +01:00
..
calendar Fix some errors and change opinionated eslint 2015-10-23 18:30:37 +02:00
_config.scss Reorder properties for datepicker 2015-10-21 01:51:24 +02:00
dialog.jsx update webpack dev, test and build & update eslint rule 2015-10-23 16:11:40 +08:00
index.jsx update webpack dev, test and build & update eslint rule 2015-10-23 16:11:40 +08:00
readme.md Improve markdown format 2015-10-31 21:55:12 +01:00
style.scss Reorder properties for datepicker 2015-10-21 01:51:24 +02:00

readme.md

Date Picker

A dialog date picker is used to select a single date. The selected day is indicated by a filled circle. The current day is indicated by a different color and type weight.

import DatePicker from 'react-toolbox/date_picker';

const selectedDate = new Date(1995, 11, 17);
const DatePickerTest = () => (
  <DatePicker value={selectedDate} />
);

Properties

Name Type Default Description
className String '' Sets a class to give customized styles to the time picker.
value Date Date object with the currently selected date.

Methods

The DatePicker is a very easy component from the top level API but quite complex inside. It has state to keep the currently viewed date and the currently selected value.

  • getValue is used to retrieve the current value.
  • setValue to force a new value.