fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 372 forks source link

Reload ranges as time goes on? #145

Closed ashishsc closed 5 years ago

ashishsc commented 8 years ago

Hi there, thanks for your work on this wrapper. I have an issue where I would like my predefined ranges to be evaluated when the user clicks them, that way if time passes while using the datepicker, buttons like 'Last Day' are accurate. I briefly looked over the code and it seems the way to do it would be to allow ranges to be callback functions, dan grossman suggests reading the labels or reloading the datepicker/refreshing the page, but that has its own issues as well. Is there a way to do this with the angular wrapper, or is that something you would want in a pull request?