twinssbc / Ionic-Calendar

A calendar directive for Ionic framework
http://twinssbc.github.io/Ionic-Calendar/demo
MIT License
159 stars 73 forks source link

min month constraint #119

Open masia5 opened 7 years ago

masia5 commented 7 years ago

It'd be useful to set a minimum month in order to block users from moving back if the current month view is equal to the min month value.

twinssbc commented 7 years ago

@masia5 With the current version, it's not possible. I know the new slides in latest Ionic 1.3.2 version is based on Swiper, and it provides such disabling swiping functionality. But I found it doesn't work quite well. So it may take some time to get this feature.

masia5 commented 7 years ago

What happen if you don't create the <ion-slide> block on the left of the min-month?

twinssbc commented 7 years ago

I'm using the loop mode of the ion-slides, so when swiping left, it will go to the last slide in the loop. Btw, do you know the isDateDisabled option? At least it can give user indication that the previous date is disabled.