array( * 'cursor' => 'move', * ), * 'options' => array( * 'tag' => 'ul', * ), * )); * * echo '
  • Item 1
  • '; * echo '
  • Item 2
  • '; * echo '
  • Item 3
  • '; * * Sortable::end(); * ``` * * @see http://api.jqueryui.com/sortable/ * @author Alexander Kochetov * @since 2.0 */ class Sortable extends Widget { /** * Initializes the widget. */ public function init() { parent::init(); $options = $this->options; $tag = isset($options['tag']) ? $options['tag'] : 'div'; unset($options['tag']); echo Html::beginTag($tag, $options) . "\n"; } /** * Renders the widget. */ public function run() { echo Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div') . "\n"; $this->registerWidget('sortable', false); } }