Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashnuke/delorean
A better date picker.
https://github.com/hashnuke/delorean
Last synced: 24 days ago
JSON representation
A better date picker.
- Host: GitHub
- URL: https://github.com/hashnuke/delorean
- Owner: HashNuke
- Created: 2015-05-28T16:50:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2014-10-21T16:29:41.000Z (about 10 years ago)
- Last Synced: 2024-10-04T21:34:35.695Z (about 1 month ago)
- Language: CoffeeScript
- Homepage:
- Size: 473 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Delorean - jQuery datepicker plugin
## Usage
Add delorean as a bower dependency or copy over the files in the `dist` dir.
```
$(selector).datepicker(options)
```If the value of the input element is set, it'll be parsed.
### Options
* *startingView*: `years` (default), `months`, `days`
* *format*: `yyyymmdd` (default), `mmddyyyy`
* *seperator*: `/` (default). Resulting value would look like `2014/04/05`. To use '-', change this option's value to `-`
* *locale*: `en` (default). English is the only available locale right now### Events
#### `datepicker:selected`
On selecting a date, this event is triggered with the value (in the format specified) of the selected date as an argument.
Example that handles the event:
```
$(window).on("datepicker:selected", function(event, value) {
// do what you want here
})
```## Development
The CSS file is in `dist/delorean.css`. The coffeescript source files are in `lib/`
* Install dependencies with `npm install` or install `coffee-script` and `bower` from npm yourself.
* To compile once run `make`
* To watch for changes and compile during development run `make watch`