|
|
|
@ -62,7 +62,7 @@ use yii\helpers\ArrayHelper;
|
|
|
|
|
* ] |
|
|
|
|
* ]); |
|
|
|
|
* |
|
|
|
|
* // With standard layout you would use 'template' to size a specific field: |
|
|
|
|
* // With 'default' layout you would use 'template' to size a specific field: |
|
|
|
|
* // echo $form->field($model, 'demo', [ |
|
|
|
|
* // 'template' => '{label} <div class="row"><div class="col-sm-4">{input}{error}{hint}</div></div>' |
|
|
|
|
* // ]); |
|
|
|
@ -84,12 +84,12 @@ use yii\helpers\ArrayHelper;
|
|
|
|
|
class ActiveField extends \yii\widgets\ActiveField |
|
|
|
|
{ |
|
|
|
|
/** |
|
|
|
|
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline. Default is `false`. |
|
|
|
|
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline. |
|
|
|
|
*/ |
|
|
|
|
public $inline = false; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @var string|null optional template to render the `{input}` placheolder content |
|
|
|
|
* @var string|null optional template to render the `{input}` placeholder content |
|
|
|
|
*/ |
|
|
|
|
public $inputTemplate; |
|
|
|
|
|
|
|
|
@ -119,7 +119,7 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
public $enableLabel = true; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function __construct($config = []) |
|
|
|
|
{ |
|
|
|
@ -129,7 +129,7 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function render($content = null) |
|
|
|
|
{ |
|
|
|
@ -161,7 +161,7 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function checkbox($options = [], $enclosedByLabel = true) |
|
|
|
|
{ |
|
|
|
@ -182,7 +182,7 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function checkboxList($items, $options = []) |
|
|
|
|
{ |
|
|
|
@ -202,7 +202,7 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function radioList($items, $options = []) |
|
|
|
|
{ |
|
|
|
@ -222,7 +222,7 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function label($label = null, $options = []) |
|
|
|
|
{ |
|
|
|
|