widgets\ActiveField $parts

$parts public property Different parts of the field (e.g. input, label). This will be used together with $template to generate the final field HTML code. The keys are the token names in $template, while the values are the corresponding HTML code. Valid tokens include {input}, {label} and {error}. Note that you normally don't need to access this property directly as it is maintained by various methods of this class. public array $parts = []

widgets\ActiveField $options

$options public property The HTML attributes (name-value pairs) for the field container tag. The values will be HTML-encoded using yii\helpers\Html::encode(). If a value is null, the corresponding attribute will not be rendered. The following special options are recognized: tag: the tag name of the container element. Defaults to div. Setting it to false will not render a container tag. See also yii\helpers\Html::tag(). If you set a custom id for the container element, you may need to adjus

widgets\ActiveField $model

$model public property The data model that this field is associated with. public yii\base\Model $model = null

widgets\ActiveField $labelOptions

$labelOptions public property The default options for the label tags. The parameter passed to label() will be merged with this property when rendering the label tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $labelOptions = ['class' => 'control-label']

widgets\ActiveField $inputOptions

$inputOptions public property The default options for the input tags. The parameter passed to individual input methods (e.g. textInput()) will be merged with this property when rendering the input tag. If you set a custom id for the input element, you may need to adjust the $selectors accordingly. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $inputOptions = ['class' => 'form-control']

widgets\ActiveField $hintOptions

$hintOptions public property The default options for the hint tags. The parameter passed to hint() will be merged with this property when rendering the hint tag. The following special options are recognized: tag: the tag name of the container element. Defaults to div. Setting it to false will not render a container tag. See also yii\helpers\Html::tag(). See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $hintOptions = ['class' =

widgets\ActiveField $form

$form public property The form that this field is associated with. public yii\widgets\ActiveForm $form = null

widgets\ActiveField $errorOptions

$errorOptions public property The default options for the error tags. The parameter passed to error() will be merged with this property when rendering the error tag. The following special options are recognized: tag: the tag name of the container element. Defaults to div. Setting it to false will not render a container tag. See also yii\helpers\Html::tag(). encode: whether to encode the error output. Defaults to true. If you set a custom id for the error element, you may need to adjust th

widgets\ActiveField $enableClientValidation

$enableClientValidation public property Whether to enable client-side data validation. If not set, it will take the value of yii\widgets\ActiveForm::$enableClientValidation. public boolean $enableClientValidation = null

widgets\ActiveField $enableAjaxValidation

$enableAjaxValidation public property Whether to enable AJAX-based data validation. If not set, it will take the value of yii\widgets\ActiveForm::$enableAjaxValidation. public boolean $enableAjaxValidation = null