Commit dbb0ed70 authored by Klimov Paul's avatar Klimov Paul

Doc comments updated

parent 5f1b8ab7
...@@ -297,6 +297,7 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -297,6 +297,7 @@ class ActiveField extends \yii\widgets\ActiveField
* - encode: boolean, whether value should be HTML-encoded or not. * - encode: boolean, whether value should be HTML-encoded or not.
* *
* @return $this the field object itself * @return $this the field object itself
* @since 2.0.5
*/ */
public function staticControl($options = []) public function staticControl($options = [])
{ {
......
...@@ -33,6 +33,11 @@ use yii\helpers\ArrayHelper; ...@@ -33,6 +33,11 @@ use yii\helpers\ArrayHelper;
* ['label' => 'Level 1 - Dropdown B', 'url' => '#'], * ['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 * 'options' => ['class' =>'nav-pills'], // set this to nav-tab to get tab-styled navigation
* ]); * ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment