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 CJuiAccordion

CJuiAccordion displays an accordion widget.

CJuiAccordion encapsulates the JUI Accordion plugin.

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

$this->widget('zii.widgets.jui.CJuiAccordion',array(
    'panels'=>array(
        'panel 1'=>'content for panel 1',
        'panel 2'=>'content for panel 2',
        // panel 3 contains the content rendered by a partial view
        'panel 3'=>$this->renderPartial('_partial',null,true),
    ),
    // additional javascript options for the accordion plugin
    'options'=>array(
        'animate'=>'bounceslide',
    ),
));

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

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CJuiWidget
Extended by CJuiAccordion
Package: zii\widgets\jui
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Sebastian Thierer <sebathi@gmail.com>
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/zii/widgets/jui/CJuiAccordion.php
Methods summary
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 CJuiWidget
getScriptFile(), init(), 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 array $panels array()
#

list of panels (panel title=>panel content). Note that neither panel title nor panel content will be HTML-encoded.

list of panels (panel title=>panel content). Note that neither panel title nor panel content will be HTML-encoded.

public string $tagName 'div'
#

the name of the container element that contains all panels. Defaults to 'div'.

the name of the container element that contains all panels. Defaults to 'div'.

public string $headerTemplate '<h3><a href="#">{title}</a></h3>'
#

the template that is used to generated every panel header. The token "{title}" in the template will be replaced with the panel title. Note that if you make change to this template, you may also need to adjust the 'header' setting in CJuiWidget::$options.

the template that is used to generated every panel header. The token "{title}" in the template will be replaced with the panel title. Note that if you make change to this template, you may also need to adjust the 'header' setting in CJuiWidget::$options.

public string $contentTemplate '<div>{content}</div>'
#

the template that is used to generated every panel content. The token "{content}" in the template will be replaced with the panel content.

the template that is used to generated every panel content. The token "{content}" in the template will be replaced with the panel content.

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