Closed greypants closed 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.
['mm', 'dd', 'yyyy']
You can still provide custom parser and formatter props, but now, just providing a format and delimiter should cover most use cases.
parser
formatter
format
delimiter
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
This looks pretty good but I'm going to hold off thumbing until I can spend more time looking over it.
:+1:
Updated Demo: http://code.viget.com/ca11y/
This addresses comments in #32, and adds some easy lightweight parsing and formatting out of the box.
['mm', 'dd', 'yyyy']
You can still provide custom
parser
andformatter
props, but now, just providing aformat
anddelimiter
should cover most use cases.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