Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extending jQuery UI datepicker

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?

like image 912
Celos Avatar asked Jul 21 '26 13:07

Celos


1 Answers

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.

like image 65
Celos Avatar answered Jul 24 '26 04:07

Celos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!