Browse Source

LinkSorter did not use Html options

fixes #1556
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
ed7b7db8b9
  1. 3
      framework/yii/widgets/LinkSorter.php

3
framework/yii/widgets/LinkSorter.php

@ -34,6 +34,7 @@ class LinkSorter extends Widget
public $attributes; public $attributes;
/** /**
* @var array HTML attributes for the sorter container tag. * @var array HTML attributes for the sorter container tag.
* See [[yii\helpers\Html::ul()]] for special attributes.
*/ */
public $options = ['class' => 'sorter']; public $options = ['class' => 'sorter'];
@ -68,6 +69,6 @@ class LinkSorter extends Widget
foreach ($attributes as $name) { foreach ($attributes as $name) {
$links[] = $this->sort->link($name); $links[] = $this->sort->link($name);
} }
return Html::ul($links, ['encode' => false]); return Html::ul($links, array_merge($this->options, ['encode' => false]));
} }
} }

Loading…
Cancel
Save