-
Notifications
You must be signed in to change notification settings - Fork 158
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
Read-Only datepicker. #113
Comments
Is this like what you are trying to make? By the way, adding an option not to show datepicker when input has I think the specs in your second post doesn't necessarily meet most people's preferences and some other people probably prefer a bit different way to make the picker read-only. So I'm reluctant to add such an option and would like users to make their own version of read-only datepicker themselves because, as you can see in the above demo, it can be done without touching the library's source code. |
Yes! that is exactly what I need! I'll check it out because I still develop in plain js/jquery Well. It's true that you can do everything without touching the library's source code. I think that the readonly attribute is just enough for most of people needs. Thanks! |
Can we add an option to config the datepicker so that if it's true, it shows the datepicker with the selected date or do not show the datepicker at all?
The main reason I want this is because I have an input that holds the datepicker, but there are several occasions where I want the date not to be changed, only shown.
So I though that maybe reading the value of the readonly input and hiding the datepicker in a show event could work, but I see this as a hacky way of preventing something to show in the first place.
So having an option to make the whole datepicker "readonly" would benefit not only performance, but avoid potential flickers on screen (due to fast show and hide) and also make inline datepickers able to show a date but not allow to change it.
I'm very sorry if this already exist on some way, but I read the whole documentation several times and didn't find something that could fit this need. Thanks in advance! I think this is the best picker all around!
The text was updated successfully, but these errors were encountered: