Multiple-Dates-Picker-for-jQuery-UI
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard
Readonly mode
Is there a way to set the calendar in read-only mode? I just want to show the dates and do not allow to change them manually.
Turns out it is easy to implement. Adding
if(this.multiDatesPicker.mode == 'disabled') {
return;
}
after onSelect : function(dateText, inst) {
allows setting the mode to disabled and prevent the user from changing data.
$('#multi-date-picker').multiDatesPicker({mode: 'disabled')}
If there is any interest I could create a PR for this.
@marcinkunert are you still thinking of submitting this PR? I'm all for it