Commit e54b9c6f by Damian Dennis Committed by Alexander Makarov

Fixes #5217: Tabs no longer requires content since empty tab could be used dynamically

parent b630dd20
...@@ -6,6 +6,7 @@ Yii Framework 2 bootstrap extension Change Log ...@@ -6,6 +6,7 @@ Yii Framework 2 bootstrap extension Change Log
- Chg #5231: Collapse `items` property uses `label` element instead of array key for headers (nkovacs) - Chg #5231: Collapse `items` property uses `label` element instead of array key for headers (nkovacs)
- Chg #5232: Collapse encodes headers by default (nkovacs) - Chg #5232: Collapse encodes headers by default (nkovacs)
- Chg #5217: Tabs no longer requires content since empty tab could be used dynamically (damiandennis)
2.0.0-rc September 27, 2014 2.0.0-rc September 27, 2014
......
...@@ -168,8 +168,6 @@ class Tabs extends Widget ...@@ -168,8 +168,6 @@ class Tabs extends Widget
$linkOptions['data-toggle'] = 'tab'; $linkOptions['data-toggle'] = 'tab';
$header = Html::a($label, '#' . $options['id'], $linkOptions); $header = Html::a($label, '#' . $options['id'], $linkOptions);
$panes[] = Html::tag('div', $item['content'], $options); $panes[] = Html::tag('div', $item['content'], $options);
} else {
throw new InvalidConfigException("Either the 'content' or 'items' option must be set.");
} }
$headers[] = Html::tag('li', $header, $headerOptions); $headers[] = Html::tag('li', $header, $headerOptions);
......
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