Multiple-Dates-Picker-for-jQuery-UI icon indicating copy to clipboard operation
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard

Readonly mode

Open marcinkunert opened this issue 7 years ago • 2 comments

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.

marcinkunert avatar Oct 02 '18 11:10 marcinkunert

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 avatar Oct 02 '18 11:10 marcinkunert

@marcinkunert are you still thinking of submitting this PR? I'm all for it

avrahamappel avatar Jan 30 '19 19:01 avrahamappel