Class CJuiSelectable
CJuiSelectable displays an accordion widget.
CJuiSelectable encapsulates the JUI Selectable plugin.
To use this widget, you may insert the following code in a view:
$this->widget('zii.widgets.jui.CJuiSelectable',array( 'items'=>array( 'id1'=>'Item 1', 'id2'=>'Item 2', 'id3'=>'Item 3', ), // additional javascript options for the selectable plugin 'options'=>array( 'delay'=>'300', ), ));
By configuring the CJuiWidget::$options
property, you may specify the options that
need to be passed to the JUI Selectable plugin. Please refer to the JUI Selectable API documentation for possible options (name-value pairs) and
JUI
Selectable page for general description and demo.
- CComponent
- CBaseController
- CWidget
- CJuiWidget
- CJuiSelectable
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/CJuiSelectable.php
public
|
getScriptFile(),
init(),
registerCoreScripts(),
registerScriptFile(),
resolvePackagePath(),
setScriptFile()
|
__construct(),
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
public
array
|
$items | array() |
#
list of selectable items (id=>item content). Note that the item contents will not be HTML-encoded. |
public
string
|
$tagName | 'ol' |
#
the name of the container element that contains all items. Defaults to 'ol'. |
public
string
|
$itemTemplate | '<li id="{id}">{content}</li>' |
#
the template that is used to generated every selectable item. The token "{content}" in the template will be replaced with the item content, while "{id}" will be replaced with the item ID. |
$_scriptFile,
$cssFile,
$htmlOptions,
$options,
$scriptUrl,
$theme,
$themeUrl
|
$actionPrefix,
$skin
|
$controller,
$id,
$owner,
$viewPath
|