Extending jQuery UI datepicker

你离开我真会死。 提交于 2019-12-04 04:55:21

问题


I'm trying to extend jQuery's datepicker via the $.widget function, jQuery UI 1.10.3, with $.ui.datepicker as the base.

It seems that $.ui.datepicker is an object (unlike pretty much all the other widgets) and $.widget throws a TypeError when trying to instantiate the base.

Is there any way around this?


回答1:


From comments by blgt:

The datepicker does not use the widget factory and thus you can't use it to extend it

It seems like there is a rewrite underway, which should implement Datepicker using the widget factory.



来源:https://stackoverflow.com/questions/25011698/extending-jquery-ui-datepicker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!