Commit ed7b7db8 by Carsten Brandt

LinkSorter did not use Html options

fixes #1556
parent a911e250
...@@ -34,6 +34,7 @@ class LinkSorter extends Widget ...@@ -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 ...@@ -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]));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment