Browse Source

Fixes #5799: `yii\bootstrap\ButtonGroup::buttons` can take all options that are supported by `yii\bootstrap\Button`

tags/2.0.1
Qiang Xue 10 years ago
parent
commit
b9d20fdeac
  1. 3
      ButtonGroup.php
  2. 1
      CHANGELOG.md

3
ButtonGroup.php

@ -81,8 +81,9 @@ class ButtonGroup extends Widget
foreach ($this->buttons as $button) {
if (is_array($button)) {
$button['view'] = $this->getView();
if (!isset($button['encodeLabel']))
if (!isset($button['encodeLabel'])) {
$button['encodeLabel'] = $this->encodeLabels;
}
$buttons[] = Button::widget($button);
} else {
$buttons[] = $button;

1
CHANGELOG.md

@ -7,6 +7,7 @@ Yii Framework 2 bootstrap extension Change Log
- Bug #5570: `yii\bootstrap\Tabs` would throw an exception if `content` is not set for one of its `items` (RomeroMsk)
- Enh #4181: Added `yii\bootstrap\Modal::$headerOptions` and `yii\bootstrap\Modal::$footerOptions` (tuxoff, samdark)
- Enh #5735: Added `yii\bootstrap\Tabs::renderTabContent` to support manually rendering tab contents (RomeroMsk)
- Enh #5799: `yii\bootstrap\ButtonGroup::buttons` can take all options that are supported by `yii\bootstrap\Button` (aleksanderd)
- Chg #5874: Upgraded Twitter Bootstrap to 3.3.x (samdark)

Loading…
Cancel
Save