Yii 1.1: juidatepicker

Date picker based on jQuery UI
4 followers

This extension has been deleted. See jui.

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

Use 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)

Change Log

Updates

20090121

  • Deprecated. C'est fini.

20090115

  • Version 1.9 - No more "advanced" mode, now the user $options are merged to the "templated" options, taking precedence the user's.

20081225

  • Version 1.8 - The default language is set to the application language, if valid, and if not, to "en".
  • Version 1.7 - Changed the way the name attribute is generated.

20081208

  • Version 1.6 - Code cleanup

20081207

  • Version 1.5 - Added support to some effects for displaying the calendar: fadeIn and slideDown. Please read the forum entry.

20081206

  • Version 1.4 - Added fontSize parameter, which sets the size of the fonts inside the #ui-datepicker-div div tag. This actually increases or reduces the size of the calendar.

20081205

  • 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

#1892 report it
Mike at 2009/01/14 09:17am
Works fine

... 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.

#1919 report it
MetaYii at 2008/12/04 04:48pm
Thanks hellowayne

Thanks hellowayne, please use the forum to post bug reports. I posted your comment there for you.

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet