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 adjust the $selectors accordingly.

See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.

public array $options = ['class' => 'form-group']
doc_Yii
2016-10-30 17:17:45
Comments
Leave a Comment

Please login to continue.