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.
- startingView:
years
(default),months
,days
- format:
yyyymmdd
(default),mmddyyyy
- seperator:
/
(default). Resulting value would look like2014/04/05
. To use '-', change this option's value to-
- locale:
en
(default). English is the only available locale right now
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
})
The CSS file is in dist/delorean.css
. The coffeescript source files are in lib/
- Install dependencies with
npm install
or installcoffee-script
andbower
from npm yourself. - To compile once run
make
- To watch for changes and compile during development run
make watch