juidatepicker Date picker based on jQuery UI

  1. Documentation
  2. Change Log

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 :(
2 0
4 followers
290 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: MetaYii
Created on: Dec 3, 2008
Last updated: 14 years ago