Browse Source

Fixes #5735: Added `yii\bootstrap\Tabs::renderTabContent` to support manually rendering tab contents

tags/2.0.1
Qiang Xue 10 years ago
parent
commit
1ec4506c19
  1. 1
      CHANGELOG.md
  2. 4
      Tabs.php

1
CHANGELOG.md

@ -5,6 +5,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) - Bug #5570: `yii\bootstrap\Tabs` would throw an exception if `content` is not set for one of its `items` (RomeroMsk)
- Enh #5735: Added `yii\bootstrap\Tabs::renderTabContent` to support manually rendering tab contents (RomeroMsk)
2.0.0 October 12, 2014 2.0.0 October 12, 2014

4
Tabs.php

@ -102,7 +102,9 @@ class Tabs extends Widget
*/ */
public $navType = 'nav-tabs'; public $navType = 'nav-tabs';
/** /**
* @var boolean whether the tab-content container should be rendered. * @var boolean whether to render the `tab-content` container and its content. You may set this property
* to be false so that you can manually render `tab-content` yourself in case your tab contents are complex.
* @since 2.0.1
*/ */
public $renderTabContent = true; public $renderTabContent = true;

Loading…
Cancel
Save