This extension has been deleted. See jui.
protected/extensionsUse an image button to trigger the calendar, and also on focus (by default):
$this->widget('application.extensions.juidatepicker.EDatePicker', array( 'name'=>'dp', 'language'=>'es', 'mode'=>'imagebutton', 'theme'=>'cupertino', 'value'=>date('Y-m-d'), 'htmlOptions'=>array('size'=>10) ) );
Set the font size (and the calendar size):
$this->widget('application.extensions.juidatepicker.EDatePicker', array( 'name'=>'cp', 'language'=>'pt_BR', 'mode'=>'imagebutton', 'dateFormat'=>'m-d-yy', 'fontSize'=>'0.6em', 'htmlOptions'=>array('size'=>10) ) );
Several prebuilt themes from jQuery Theme Roller are bundled. You can make your own theme with that system, or manually.
If you need more advanced or custom functionality, I recommend you to extend the EDatePicker class and code your needs. There's a manual here (please note: I'm not related to the development of the jQuery UI plugin, so I may not be qualified to answer your questions related to it, but I'll do my best)
Version 1.3 - Fixed URLs. Now it works in Windows(tm) too.
Version 1.2 - Added support for zh_CN, zh_TW and pt_BR.
Version 1.1 - Fixed a bug which prevented to use a custom date format such as "m-d-yy". Please update the widget or set:
private $useSpecialFormat = false; // right!
instead of
private $useSpecialFormat = true; // wrong :(
Total 2 comments
... just to improve this extension's rating ;) : Everything works fine so far - only the docs at the jquery site aren't available ATM.
Thanks for this nice work.
Thanks hellowayne, please use the forum to post bug reports. I posted your comment there for you.
Leave a comment
Please login to leave your comment.