twinssbc / Ionic-Calendar

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

Suggestions #88

Open GijsGoudzwaard opened 8 years ago

GijsGoudzwaard commented 8 years ago

These are some suggestions that I think a lot of people would benefit from:

I know these can be achieved by making some custom code, but a lot of people here are asking for the same things, so I think these features should be built-in.

twinssbc commented 8 years ago

@GijsGoudzwaard Thanks for the suggestions. Item 1 and 2 are relatively easier to implement, I will try to add them to the next version. Item 3 is difficult, because it is based on the ion-slide-box which doesn't provide vertical scrolling in Ionic 1. It will require a lot of code change.

GijsGoudzwaard commented 8 years ago

I primarily need the first 2, the third was just a 'nice to have'. It'd be great if you could add the first 2!

Arxi commented 8 years ago

An enhancement of the Item 1 - it would be cool if we could define some kind of a range - first allowed date and last allowed date - and it wouldn't be possible to go to dates earlier than the first allowed date and also to dates later than the last allowed date.

For example, I only need three months starting from today, not earlier, not later.

GijsGoudzwaard commented 8 years ago

@twinssbc Is there any sort of a time table on this? When will the next version release?

twinssbc commented 8 years ago

Sorry, I dont have too much time recently, also need to put efforts on the Ionic2 version, thats why these features get delayed. I should be able to have some time in December to work on them.

twinssbc commented 7 years ago

I have added isDateDisabled callback function to achieve the first and second feature requests. Disabling going back to previous month is a bit tricky. I need to update the Ionic dependency so that I can leverage the feature in Swiper. I will implement it later.

GijsGoudzwaard commented 7 years ago

@twinssbc Do you have an estimation as to when the previous months can be disabled? I still need this for my app.

twinssbc commented 7 years ago

@GijsGoudzwaard Displaying dates in previous months as Disabled is already supported. You can use the isDateDisable callback. As I said in the above comment, disabling navigating back to previous month is not supported yet. That feature is supposed to work in the new ion-slides which is based on Swiper. But I tried to use the new version and found that there's a bug which causes previous/next slide not displaying correctly. https://github.com/driftyco/ionic-v1/issues/33