Browse Source

Doc comments updated

tags/2.0.6
Klimov Paul 10 years ago
parent
commit
dbb0ed704e
  1. 1
      ActiveField.php
  2. 5
      Nav.php

1
ActiveField.php

@ -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 = [])
{ {

5
Nav.php

@ -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
* ]); * ]);

Loading…
Cancel
Save