From 2653a662c40bdb08d2e3af958d1c94343631f716 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 26 May 2013 11:35:26 -0400 Subject: [PATCH] Fixed docs for Sortable. --- framework/yii/jui/Sortable.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/framework/yii/jui/Sortable.php b/framework/yii/jui/Sortable.php index 173b742..8524b5b 100644 --- a/framework/yii/jui/Sortable.php +++ b/framework/yii/jui/Sortable.php @@ -49,11 +49,29 @@ use yii\helpers\Html; class Sortable extends Widget { /** - * @var array list of sortable containers. + * @var array the HTML attributes for the widget container tag. The following special options are recognized: + * + * - tag: string, defaults to "ul", the tag name of the container tag of this widget + */ + public $options = array(); + /** + * @var array list of sortable items. Each item can be a string representing the item content + * or an array of the following structure: + * + * ~~~ + * array( + * 'content' => 'item content', + * // the HTML attributes of the item container tag. This will overwrite "itemOptions". + * 'options' => array(), + * ) + * ~~~ */ public $items = array(); /** - * @var array list of individual sortable container default options. + * @var array list of HTML attributes for the item container tags. This will be overwritten + * by the "options" set in individual [[items]]. The following special options are recognized: + * + * - tag: string, defaults to "li", the tag name of the item container tags. */ public $itemOptions = array();