Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chemzqm/rangepicker

Date range picker ui component built on chemzqm/calendar
https://github.com/chemzqm/rangepicker

Last synced: about 1 month ago
JSON representation

Date range picker ui component built on chemzqm/calendar

Awesome Lists containing this project

README

        

# 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](http://i.imgur.com/p6cbnY9.png)

## 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