|
|
|
@ -74,6 +74,7 @@ class ButtonDropdown extends Widget
|
|
|
|
|
*/ |
|
|
|
|
public function run() |
|
|
|
|
{ |
|
|
|
|
// @todo use [[options]] instead of [[containerOptions]] and introduce [[buttonOptions]] before 2.1 release |
|
|
|
|
Html::addCssClass($this->containerOptions, 'btn-group'); |
|
|
|
|
$options = $this->containerOptions; |
|
|
|
|
$tag = ArrayHelper::remove($options, 'tag', 'div'); |
|
|
|
@ -102,6 +103,7 @@ class ButtonDropdown extends Widget
|
|
|
|
|
$options = $this->options; |
|
|
|
|
$this->options['data-toggle'] = 'dropdown'; |
|
|
|
|
Html::addCssClass($this->options, 'dropdown-toggle'); |
|
|
|
|
unset($this->options['id']); |
|
|
|
|
$splitButton = Button::widget([ |
|
|
|
|
'label' => '<span class="caret"></span>', |
|
|
|
|
'encodeLabel' => false, |
|
|
|
|