wakirin / Litepicker

Date range picker - lightweight, no dependencies
MIT License
898 stars 132 forks source link

Month and Year dropdowns #15

Closed ThePhoenixBird closed 4 years ago

ThePhoenixBird commented 4 years ago

Is your feature request related to a problem? Please describe. Not a problem, but the now deprecated Lightpick supported the option dropdowns where you could customize these items behaviour, and also to have select dropdowns to easily switch between large date periods.

Describe the solution you'd like Port the dropdowns option from Lightpick to Litepicker

Describe alternatives you've considered None

Additional context Thanks for your great datepicker lib.

wakirin commented 4 years ago

New option dropdowns added in v1.0.20

xaddict commented 4 years ago

@wakirin additional subrequest to add the classes 'year' and 'month' to the respective dropdowns so they can easily be styled :)

wakirin commented 4 years ago

@xaddict from v1.0.22 these classes are added: .month-item-name .month-item-year

kl3sk commented 4 years ago

Any way to add class instead (or choose between or both) instead of use predefined class ?

to be clear, I want to use bootstrap classes or and other JS plugin for dropdown (select)

Edit: Apply JS libs (eg: ChoicesJS) on the dropdown will be reset on every change