-
Notifications
You must be signed in to change notification settings - Fork 191
How should max and minimum date changed dynamically? #51
Comments
There is no such possibility out of the box if you want it straightforward.
Second is preferable. |
Ok. Can you suggest how you want me to do that exactly. $('.date_picker').pickmeup({min: new Date()}); minDate = new Date() $('.date_picker').data('pickmeup-options').date = whatever How to work with render events, (this one launches on EACH day that is drawn), there is also no description. I like this solution. Would be great to improve it. |
var element = $(...).pickmeup({
...
render : function (current_date) {
if (current_date < min_date || current_date > max_date) {
return {disabled: true};
}
}
}); In this case Then call Well, there was some bugs with Here is simple demo for you to show what I explained above: http://jsfiddle.net/z4fmvuzb/30/ Another way (hacking internal options of PickMeUp) is not recommended, it might be buggy, while this case is simple and documented. |
@nazar-pc Perfect, thank you. |
Currently doing by fully re-initializing with previous state except few modifications.
The text was updated successfully, but these errors were encountered: