title: How to customize Navbar property in Yii2
body: <p>I have navigation header like this:</p>
  
  <pre><code>&lt;div class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="navbar-collapse collapse"&gt;
        &lt;form class="navbar-form navbar-right" role="search"&gt;
          &lt;div class="form-group has-feedback"&gt;
              &lt;input id="searchbox" type="text" placeholder="Search" class="form-control"&gt;
              &lt;span id="searchicon" class="fa fa-search form-control-feedback"&gt;&lt;/span&gt;
          &lt;/div&gt;
        &lt;/form&gt;
      &lt;/div&gt;&lt;!--/.navbar-collapse --&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have problem when I want to convert this code using <code>yii\bootstrap\NavBar;</code>: </p>
  
  <pre><code>&lt;div class="navbar-collapse collapse"&gt;
       &lt;form class="navbar-form navbar-right" role="search"&gt;
             &lt;div class="form-group has-feedback"&gt;
                  &lt;input id="searchbox" type="text" placeholder="Search" class="form-control"&gt;
                  &lt;span id="searchicon" class="fa fa-search form-control-feedback"&gt;&lt;/span&gt;
              &lt;/div&gt;
        &lt;/form&gt;
  &lt;/div&gt;&lt;!--/.navbar-collapse --&gt;
  </code></pre>
  
  <p>And this is the code of my <code>Layout</code> using <code>yii\bootstrap\NavBar;</code>:</p>
  
  <pre><code>&lt;?php
      NavBar::begin([
          'brandLabel' =&gt; 'My Company',
          'brandUrl' =&gt; Yii::$app-&gt;homeUrl,
          'options' =&gt; [
              'class' =&gt; 'navbar navbar-inverse navbar-fixed-top',
              'role' =&gt; 'navigation',
          ],
      ]);
      NavBar::end();
  ?&gt;
  </code></pre>
  
  <p>I have been read <a href="http://www.yiiframework.com/doc-2.0/yii-bootstrap-navbar.html" rel="nofollow noreferrer">Navbar Widget</a>, but still don't understand. Is there anyone who can teach me to using <code>Navbar</code> widget on <code>Yii2 framework</code>?.</p>