ZestfulNation / vue-hotel-datepicker

A VueJS v2 responsive date range picker. Displays the number of nights selected and allow several useful options like custom check-in/check-out rules, localization support and more.
https://zestfulnation.github.io/vue-hotel-datepicker/
MIT License
840 stars 220 forks source link

No event when previous months rendered. #277

Closed maaqib121 closed 3 years ago

maaqib121 commented 3 years ago

Is your feature request related to a problem? Please describe.

Scenario Suppose we are month-wise populating prices in the calendar using API. Let's say, the initial selected date is May 08, 2021, so initially prices for the whole May month will be loaded in the calendar. When we click on 'Next Arrow', there is an event 'next-month-rendered' which gets triggered for every 'untraversed' month and it can be used to make an API call and load prices for the next months (June, July, Aug and so on in our case) as well.

Issue There is no such event if we want to have the similar behavior to load prices for previous months.

Describe the solution you'd like An event most probably previous-month-rendered which should trigger when we click on the previous arrow.

matiasperrone commented 3 years ago

Those (previous) months were already visited?

maaqib121 commented 3 years ago

No, they ain't visited, and even we visits them, there is no event which we can trigger for them.

remcoz commented 3 years ago

is this bug going to be fixed in new release? For us its important also...thanks

maaqib121 commented 3 years ago

This feature is kind of urgent for me as well. I will be highly grateful, if any collaborator can give me an idea of how much time can it take to be implemented.

matiasperrone commented 3 years ago

If you please provide me with an PR, I will update the version with your solution!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

matiasperrone commented 3 years ago

@maaqib121 what about that PR?

maaqib121 commented 3 years ago

@matiasperrone sorry for responding very late. I had been extremely busy lately, but got some time now to add this feature along with a couple of fixes. I'll try to provide you with a PR very soon with my solution.

matiasperrone commented 3 years ago

Thanks! I am busy too... that's why I didn't have the time.

matiasperrone commented 3 years ago

done on v4.5