amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.01k forks source link

v5 feedback #1180

Closed DanielRuf closed 3 years ago

DanielRuf commented 5 years ago

We want to hear your feedback regarding the upcoming v5 release.

v5 brings the following changes:

https://github.com/amsul/pickadate.js/tree/future

Docs: https://amsul.ca/pickadate.js/v5/

callaginn commented 5 years ago

Overall Feedback

I'm a HUGE fan of the new super-clean design and the removal of jQuery as a dependency. I've also found it's a lot less glitchy than v3, which I used on this site: http://elysrestaurant.com/reservations

However, I did run across a few issues when setting v5 up:

Can't Hide Timepicker

Couldn't figure out how to hide the timepicker GUI via JS options -- so ended up hiding it via css and formatting the string with the optional template argument:

.pickadate--footer {display: none !important;}
var picker = pickadate.create({
    template: 'MMMM D, YYYY'
});

picker.setMinimum({
    value: new Date(),
});

pickadate.render(document.getElementById('input-date'), picker);

Rendering Issues with IE11

I also had multiple issues with IE11, which I documented fixes for in issue https://github.com/amsul/pickadate.js/issues/1155. Most of them involve easy polyfills -- but one of them required an edit to the plugin code:

Pickadate v5: In the Wild

I've had v5.0.0-alpha.2 running on one of our sites for a few months without any further issues: https://gennabennas.com/private-dining

Note: I'm currently using Codekit to compile it to ES5, but will eventually upgrade that site to ES6 with ES5 fallbacks. I'm a newb to ES6 though, so taking my time.

amsul commented 5 years ago

@callaginn thanks for the feedback!

The IE bugs should be fixed before we can progress v5 into "beta".

Regarding the time picker hiding, did you try setting the mode state to date? That should hide the time picker. It doesn't seem to be documented yet.

Are you installing v5.0.0-alpha.2 with npm? It should already be compiled to ES5 in the bundle.

chrissvo commented 5 years ago

Cool stuff, was trying this out in a new app, seems to work pretty good!

2 questions:

As a suggestion: If you are time-picking in the same box you might need a close button

Zuushi commented 4 years ago

Hello,

I really enjoy the project even if I had hard moments to do simple things (which I could not find any help in documentation).

I am currently using it on a small project. I was asked to allow users to select time from 9:00 to 18:00 (French time). I have done something quick and dirty to hide AM : PM Meridian and to display time from 00:00 to 23:00.

Feel free to ask.

Best regards

Shaker96 commented 3 years ago

Hi,

Implementing this version now since I'm getting rid of jQuery!

Are the buttons for today, clear, close going to be included? as well as the options selectMonths and selectYears