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

$.ui.datepicker has no .prototype #2156

Open
lehelkeresztes opened this issue Nov 28, 2017 · 2 comments
Open

$.ui.datepicker has no .prototype #2156

lehelkeresztes opened this issue Nov 28, 2017 · 2 comments

Comments

@lehelkeresztes
Copy link

Every widget i'm using from the jquery UI has a .prototype, but not datepicker.
I've found this issue by trying to overwrite classes, as per the guide here.

Here's my code snippet, which works for every widget, except datepicker:
$.extend( $.ui.selectmenu.prototype.options.classes, { "ui-selectmenu-menu": "custom-class-name" });

@Krinkle Krinkle transferred this issue from jquery/learn.jquery.com Mar 26, 2023
@mgol
Copy link
Member

mgol commented Sep 12, 2023

Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/.

@fnagel may have more context about the design of the datepicker.

@fnagel
Copy link
Member

fnagel commented Oct 19, 2023

@mgol In this case, I have some more insights :-)

@lehelkeresztes You are right. The datepicker plugin is the only one which is not based on the widget base class. This is due to historical reasons.

We planned to release two new widgets in order to replace the current datepicker plugin: calendar and datepicker. Sadly, they never made it to an official release. You can find some more info about those widgets here:

https://jqueryui.pbworks.com/w/page/12137778/Datepicker
https://github.com/jquery/jquery-ui/tree/datepicker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment