PHP Класс macgyer\yii2materializecss\widgets\form\ActiveForm

См. также: http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html
Автор: Christoph Erdmann ([email protected])
Наследование: extends yii\widgets\ActiveForm
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$errorCssClass the CSS class that is added to a field container when the associated attribute has validation error.
$fieldClass the default field class name when calling ActiveForm::field to create a new field.
$successCssClass the CSS class that is added to a field container when the associated attribute is successfully validated.

Открытые методы

Метод Описание
field ( Model $model, string $attribute, array $options = [] ) : ActiveField Generates a form field.
init ( ) Initialize the widget.

Описание методов

field() публичный Метод

Generates a form field.
public field ( Model $model, string $attribute, array $options = [] ) : ActiveField
$model yii\base\Model the data model.
$attribute string the attribute name or expression. See [yii\helpers\Html::getAttributeName()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#getAttributeName()-detail) for the format about attribute expression.
$options array the additional configurations for the field object. These are properties of [yii\widgets\ActiveField](http://www.yiiframework.com/doc-2.0/yii-widgets-activefield.html) or a subclass, depending on the value of [$fieldClass](http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#$fieldClass-detail).
Результат ActiveField the created ActiveField object

init() публичный Метод

Initialize the widget.
public init ( )

Описание свойств

$errorCssClass публичное свойство

the CSS class that is added to a field container when the associated attribute has validation error.
public $errorCssClass

$fieldClass публичное свойство

the default field class name when calling ActiveForm::field to create a new field.
См. также: http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#$fieldConfig-detail
public $fieldClass

$successCssClass публичное свойство

the CSS class that is added to a field container when the associated attribute is successfully validated.
public $successCssClass