pickadate.js icon indicating copy to clipboard operation
pickadate.js copied to clipboard

Display only the current month

Open pirra10 opened this issue 6 years ago • 1 comments

How i can display only the current month, i don't want to show part of the next month.

thanks! pickadate is a very usefull plugin.

greets!

pirra10 avatar Jul 28 '18 19:07 pirra10

Unfortunately the amsul datepicker doesn't offer a built-in function to do this. You can fake it using some custom css however. Essentially overwrite the styles for picker__nav--prev & picker__nav--next and make them invisible.

To hide the days of the previous month/the next month in the current month's view you have to overwrite the style for picker__day--outfocus.

.picker__nav--prev { visibility: hidden; }

.picker__nav--next { visibility: hidden; }

.picker__day--outfocus { visibility: hidden; }

bsgies avatar Jul 20 '19 21:07 bsgies