Closed Dezyderyjczyk closed 5 years ago
You need to add the desired expand class (e.g. navbar-expand-lg
):
https://getbootstrap.com/docs/4.3/components/navbar/#nav
NavBar::begin([
'brandLabel' => Yii::$app->name,
'brandUrl' => Yii::$app->homeUrl,
'options' => [
'id' => 'mainNav',
'class' => 'bg-dark navbar-dark navbar-fixed-top navbar-expand-lg'
]
]);
I installed the extension. I have js and css connected. I called these commands:
echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => [ ['label' => 'File', 'url' => ['/files'],], ... ['label' => 'Login', 'url' => ['/site/login'],], ] ]); NavBar::end();
And yet, all the time, regardless of the width, I have collapse