/rangepicker

Date range picker ui component built on chemzqm/calendar

Primary LanguageJavaScript

Rangepicker

Example date picker ui component built on component/calendar.

Not yet feature-rich, just a blog post example.

screen shot 2013-06-17 at 13 31 47

API

rangepicker(el)

Initialize the rangepicker with HTMLinputelement el

.getValue()

Get the object containing start and end date like {start: "2012-1-1", end: "2013-1-1"}

.setValue(str)

Set the the input value to str

EVENT: change

Emit the result value when the value changes

Installation

$ component install chemzqm/rangepicker

License

MIT