Browse Source

update example to use navbar-nav class

if you try to render the nav without this class it renders each item on its own line.  this change means they are rendered inline as expected.
tags/2.0.5
Brett O'Donnell 9 years ago
parent
commit
61e29c448b
  1. 1
      NavBar.php

1
NavBar.php

@ -27,6 +27,7 @@ use yii\helpers\ArrayHelper;
* ['label' => 'Home', 'url' => ['/site/index']], * ['label' => 'Home', 'url' => ['/site/index']],
* ['label' => 'About', 'url' => ['/site/about']], * ['label' => 'About', 'url' => ['/site/about']],
* ], * ],
* 'options' => ['class' => 'navbar-nav'],
* ]); * ]);
* NavBar::end(); * NavBar::end();
* ``` * ```

Loading…
Cancel
Save