@ -297,6 +297,7 @@ class ActiveField extends \yii\widgets\ActiveField
* - encode: boolean, whether value should be HTML-encoded or not.
*
* @return $this the field object itself
* @since 2.0.5
*/
public function staticControl($options = [])
{
@ -33,6 +33,11 @@ use yii\helpers\ArrayHelper;
* ['label' => 'Level 1 - Dropdown B', 'url' => '#'],
* ],
* [
* 'label' => 'Login',
* 'url' => ['site/login'],
* 'visible' => Yii::$app->user->isGuest
* 'options' => ['class' =>'nav-pills'], // set this to nav-tab to get tab-styled navigation
* ]);