title: Multilevel Boostrap Menu in Yii 2
body: <p>I want my menu to have more than 2 levels. Looks like Yii 2 only renders up to 2 levels. For example this:</p>
  
  <pre><code>NavBar::begin();
  
  echo Nav::widget([
      'options' =&gt; ['class' =&gt; 'navbar-nav navbar-right'],
      'items' =&gt; [
          [
              'label' =&gt; 'Level 1',
              'items' =&gt; [
                  ['label' =&gt; 'Level 2 - 1', 'url' =&gt; '#'],
                  ['label' =&gt; 'Level 2 - 2', 'url' =&gt; '#'],
                  [
                      'label' =&gt; 'Level 2 - 3',
                      'items' =&gt; [
                          ['label' =&gt; 'Level 3 - 1', 'url' =&gt; '#'],
                          ['label' =&gt; 'Level 3 - 2', 'url' =&gt; '#'],
                      ],
                  ],
              ]
          ],
      ],
  ]);
  
  NavBar::end();
  </code></pre>
  
  <p>will not display the Level 3 - x menu items. How do I add more levels to the menu?</p>