From 1c2c7ca25077069e5cfbf96b65f03278224128f2 Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Fri, 22 Nov 2013 15:35:25 +0530 Subject: [PATCH 1/3] Correct Nav.php comments/PHP doc to reflect BS3 dropdown support. Corrected the example and doc to highlight allowed dropdown support in Bootstrap 3. --- extensions/bootstrap/Nav.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/extensions/bootstrap/Nav.php b/extensions/bootstrap/Nav.php index c0ea2d8..50c85bb 100644 --- a/extensions/bootstrap/Nav.php +++ b/extensions/bootstrap/Nav.php @@ -13,8 +13,8 @@ use yii\helpers\ArrayHelper; use yii\helpers\Html; /** - * Nav renders a nav HTML component. - * + * Nav renders a nav HTML component. + * * For example: * * ```php @@ -28,24 +28,23 @@ use yii\helpers\Html; * [ * 'label' => 'Dropdown', * 'items' => [ - * [ - * 'label' => 'Level 1 -DropdownA', - * 'url' => '#', - * 'items' => [ - * ['label' => 'Level 2 -DropdownA', 'url' => '#'], - * ], - * ], + * ['label' => 'Level 1 - Dropdown A', 'url' => '#'], * '
  • ', * '', - * ['label' => 'Level 1 -DropdownB', 'url' => '#'], + * ['label' => 'Level 1 - Dropdown B', 'url' => '#'], * ], * ], * ], * ]); * ``` - * - * @see http://twitter.github.io/bootstrap/components.html#nav + * + * Note: Multilevel dropdowns beyond Level 1 are not supported in Bootstrap 3. + * + * @see http://getbootstrap.com/components.html#dropdowns + * @see http://getbootstrap.com/components/#nav + * * @author Antonio Ramirez + * @author Kartik Visweswaran * @since 2.0 */ class Nav extends Widget From 158db155872aa71e7a6ee17501288dc4dd0ba055 Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Fri, 22 Nov 2013 16:03:27 +0530 Subject: [PATCH 2/3] Correct Nav.php comments/PHP doc to reflect BS3 dropdown support. Updated tabs --- extensions/bootstrap/Nav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/bootstrap/Nav.php b/extensions/bootstrap/Nav.php index 50c85bb..9af8cfc 100644 --- a/extensions/bootstrap/Nav.php +++ b/extensions/bootstrap/Nav.php @@ -13,7 +13,7 @@ use yii\helpers\ArrayHelper; use yii\helpers\Html; /** - * Nav renders a nav HTML component. + * Nav renders a nav HTML component. * * For example: * From 998d0f71fa42a284b322ab303e247cf7f66c3a5c Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Fri, 22 Nov 2013 16:06:27 +0530 Subject: [PATCH 3/3] Correct Nav.php comments/PHP doc to reflect BS3 dropdown support. Removed edited author ref. --- extensions/bootstrap/Nav.php | 1 - 1 file changed, 1 deletion(-) diff --git a/extensions/bootstrap/Nav.php b/extensions/bootstrap/Nav.php index 9af8cfc..8f0a98d 100644 --- a/extensions/bootstrap/Nav.php +++ b/extensions/bootstrap/Nav.php @@ -44,7 +44,6 @@ use yii\helpers\Html; * @see http://getbootstrap.com/components/#nav * * @author Antonio Ramirez - * @author Kartik Visweswaran * @since 2.0 */ class Nav extends Widget