Live data from Hacker News

Pickadate.js

github.com

31–40 of 130 posts

Re: Pickadate.js

#31
post #30

A javascript date picker? Is HN being very expertly trolled?

No. DatePickers, along with Forms, are the bane of my existence. More choices that are brought to light, the better.

Re: Pickadate.js

#33
post #2

From the demos it appears that this doesn't have keyboard support. That seems like a major drawback from an accessibility standpoint. It does look nice and easy otherwise, though.

I thought that when I use it as a textbox it would automatically auto complete and hint a month, or dynamically show calendar selecting date while I'm typing, it did neither of those things.

Also I haven't looked at the API that hard, but from the examples it looks like it only supports american way of setting the date i.e. DD/Month/YYYY

Update: another big omission, I can select year only by scrolling through it month by month. i.e. try selecting February 12, 2016

Re: Pickadate.js

#35
Looks great! And with a few (minor) modifications I was able to get it to work with a non-jQuery framework! Thanks for that. I'm getting fed up with all of these ".js" projects that rely heavily on jQuery when they don't need to. I'm going to keep this library in mind for a project I'm working on.

Re: Pickadate.js

#39

How does this differ from the jquery UI datepicker?

Weighs 6.66kb (2.8kb gzipped) whereas jQuery UI datepicker is 42kb minified (or 30kb (11kb gzipped) via the Closure Compiler).

How much of that code on UI is for accessibility or backwards compatibility

Re: Pickadate.js

#40

https://github.com/amsul/pickadate.js/blob/gh-pages/pickadat... the code is a giant var statement. I don't know why, but somehow that bothers me.

looks like a single var pattern inside an immediately invoked function expression to me. works well and great for readability
Post reply on HN