10
votes

I don't see an official Polymer Datepicker component. A quick web search yields the following third party components. One of the below thread has some interesting tidbits. Can we expect an official one in the coming weeks?

3

3 Answers

10
votes

I've created paper-date-picker (docs / demo) and paper-time-picker (docs / demo) components with the goal to mirror the android versions as closely as possible, while still having decent performance on mobile devices. I opted against infinite scroll for the date picker, as I couldn't seem to find a way to make it work without sacrificing performance.

Please test on your own devices and let me know what you think (pull requests welcomed)!

5
votes

For Polymer 0.5:

I found this date-picker:

https://github.com/David-Mulder/paper-date-picker

http://david-mulder.github.io/polymer-docs/bower_components/paper-date-picker/

Doesn't use 3rd party libs.

Has good APIs(beside documented ones) as: refreshScrollPosition, currentYear, currentMonth, currentDay,...

Example: Plunk

Tip: Polymer, how to pass value to paper-date-picker attribute that expects string?

 domReady: function(){
    //paper-date-picker expects 'date' attribute to be of type DATE.
    this.birthdate_date = new Date(this.birthdate);
  },

Edit:

Time-picker links:

http://nemento.github.io/nemento-timepicker/components/nemento-timepicker/

http://component.kitchen/components/virtual-dev/md-timepicker

4
votes

Also check out https://vaadin.com/elements/-/element/vaadin-date-picker

It has material design inspired styles, so it fits in well with other paper elements. Well documented and apache 2 licensed.