Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly mode #239

Open
marcinkunert opened this issue Oct 2, 2018 · 2 comments
Open

Readonly mode #239

marcinkunert opened this issue Oct 2, 2018 · 2 comments

Comments

@marcinkunert
Copy link

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
Copy link
Author

marcinkunert commented Oct 2, 2018

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.

@avrahamappel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants