Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CJuiAccordion
  • CJuiAutoComplete
  • CJuiButton
  • CJuiDatePicker
  • CJuiDialog
  • CJuiDraggable
  • CJuiDroppable
  • CJuiInputWidget
  • CJuiProgressBar
  • CJuiResizable
  • CJuiSelectable
  • CJuiSlider
  • CJuiSliderInput
  • CJuiSortable
  • CJuiTabs
  • CJuiWidget
  • Overview
  • Package
  • Class
  • Tree

Class CJuiDatePicker

CJuiDatePicker displays a datepicker.

CJuiDatePicker encapsulates the JUI datepicker plugin.

To use this widget, you may insert the following code in a view:

$this->widget('zii.widgets.jui.CJuiDatePicker',array(
    'name'=>'publishDate',
    // additional javascript options for the date picker plugin
    'options'=>array(
        'showAnim'=>'fold',
    ),
    'htmlOptions'=>array(
        'style'=>'height:20px;'
    ),
));

By configuring the CJuiWidget::$options property, you may specify the options that need to be passed to the JUI datepicker plugin. Please refer to the JUI DatePicker API documentation for possible options (name-value pairs) and JUI DatePicker page for general description and demo.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CJuiWidget
Extended by CJuiInputWidget
Extended by CJuiDatePicker
Package: zii\widgets\jui
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Sebastian Thierer <sebathi@gmail.com>
Since: 1.1
Located at x2engine/framework/zii/widgets/jui/CJuiDatePicker.php
Methods summary
public
# init( )

Initializes the widget. This method will publish JUI assets if necessary. It will also register jquery and JUI JavaScript files and the theme CSS file. If you override this method, make sure you call the parent implementation first.

Initializes the widget. This method will publish JUI assets if necessary. It will also register jquery and JUI JavaScript files and the theme CSS file. If you override this method, make sure you call the parent implementation first.

Overrides

CJuiWidget::init()
public
# run( )

Run this widget. This method registers necessary javascript and renders the needed HTML code.

Run this widget. This method registers necessary javascript and renders the needed HTML code.

Overrides

CWidget::run()
Methods inherited from CJuiInputWidget
hasModel(), resolveNameID()
Methods inherited from CJuiWidget
getScriptFile(), registerCoreScripts(), registerScriptFile(), resolvePackagePath(), setScriptFile()
Methods inherited from CWidget
__construct(), actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), render(), setId()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal(), widget()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Properties summary
public string $language
#

the locale ID (eg 'fr', 'de') for the language to be used by the date picker. If this property is not set, I18N will not be involved. That is, the date picker will show in English. You can force English language by setting the language attribute as '' (empty string)

the locale ID (eg 'fr', 'de') for the language to be used by the date picker. If this property is not set, I18N will not be involved. That is, the date picker will show in English. You can force English language by setting the language attribute as '' (empty string)

public string $i18nScriptFile 'jquery-ui-i18n.min.js'
#

The i18n Jquery UI script file. It uses scriptUrl property as base url.

The i18n Jquery UI script file. It uses scriptUrl property as base url.

public array $defaultOptions
#

The default options called just one time per request. This options will alter every other CJuiDatePicker instance in the page. It has to be set at the first call of CJuiDatePicker widget in the request.

The default options called just one time per request. This options will alter every other CJuiDatePicker instance in the page. It has to be set at the first call of CJuiDatePicker widget in the request.

public boolean $flat false
#

If true, shows the widget as an inline calendar and the input as a hidden field.

If true, shows the widget as an inline calendar and the input as a hidden field.

Properties inherited from CJuiInputWidget
$attribute, $model, $name, $value
Properties inherited from CJuiWidget
$_scriptFile, $cssFile, $htmlOptions, $options, $scriptUrl, $theme, $themeUrl
Properties inherited from CWidget
$actionPrefix, $skin
Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
API documentation generated by ApiGen 2.8.0