Browse Source

Fixed docs for Sortable.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
2653a662c4
  1. 22
      framework/yii/jui/Sortable.php

22
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();

Loading…
Cancel
Save