Yii2 site navigation Bootstrap?

<?php
NavBar::begin([
 'brandLabel' => 'ARB',
 'brandUrl' => Yii::$app->homeUrl,
 'options' => [
 'class' => 'navbar-default',
],
]);
echo Nav::widget([
 'options' => ['class' => 'navbar-nav'],
 'items' => [
 ['label' => 'Home', 'url' => ['/site/index']],
 ['label' => 'Menu сайта1', 'url' => ['/site/index1'] ],
 ['label' => 'Menu сайта2', 'url' => ['/site/index2']],
 ['label' => 'Menu сайта3', 'url' => ['/site/index3']],
 ['label' => 'Not home ', 'url' => ['/site/about']],
 ['label' => 'Wallpaper', 'url' => ['/site/contact']],
 Yii::$app->user->isGuest ? (
 ['label' => 'Login', 'url' => ['/site/login']]
 ) : (
'<li>'
 . Html::beginForm(['/site/logout'], 'post')
 . Html::submitButton(
 Exit (' . Yii::$app->user->identity->username . ')',
 ['class' => 'btn btn-link logout']
)
 . Html::endForm()
 . '</li>'
)
],
]);
NavBar::end();

There is such a standard code in Yii2, I need to this menu to add dropdown menu, dropdown. and the sign in button to shift to the right side. Read the documentation nothing there to understand, because there is no as in this example. And the right wanted to shift the added 'class'=>'pull-right' does not work. 've tried everything, help plz __)))
April 7th 20 at 11:02
2 answers
April 7th 20 at 11:04
Solution
You to quickly insert layout from Bootstrap and no steam. If you suffer with this, what happens if you need something around to make a menu?

The difference from using the widget, especially not here.
I figured out how to do drop down menu.
But how to shift one of the buttons to the right edge and did not understand.

I want it through the widget.
I added to it options and class pull-right - melisa_Hudson99 commented on April 7th 20 at 11:07
@melisa_Hudson99widget, nothing special to do with it. Look through the inspector which classes are there and adjust the css styles as you need. Widget does not styles. - gene_Littel commented on April 7th 20 at 11:10
April 7th 20 at 11:06
Yii-shnye widgets for Bootstrap is. If a lot of edits - it is better to carry and to write your own widget or just html. There is a step left, step right - execution. Done for show, only for standard solutions.
Ideally, do your own (possibly inherited from lichnogo), override what you need and enjoy life.

Find more questions by tags YiiBootstrap