vigetlabs / ca11y

A lightweight accessible dependency-free datepicker
http://code.viget.com/ca11y
26 stars 6 forks source link

Parse and Formatting refactor #34

Closed greypants closed 8 years ago

greypants commented 8 years ago

Updated Demo: http://code.viget.com/ca11y/

This addresses comments in #32, and adds some easy lightweight parsing and formatting out of the box.

You can still provide custom parser and formatter props, but now, just providing a format and delimiter should cover most use cases.

Ca11y.init('[data-module="ca11y"]', {
  format: ['mm', 'dd', 'yyyy'],
  delimiter: '-'
})

After this gets merged, we should do a code freeze and just write tests and fix any bugs that come up. Need to update the README as well if this approach looks good.

Resolves #33 Resolves #31 Resolves #28 Resolves #25 (just default to today if invalid input value) Resolves #22 Resolves #20 Resolves #6

solomonhawk commented 8 years ago

This looks pretty good but I'm going to hold off thumbing until I can spend more time looking over it.

nhunzaker commented 8 years ago

:+1:

solomonhawk commented 8 years ago

:+1: