src/ngrest/aw/ActiveWindowFormWidget.php
public function field($attribute, $label = null, $options = [])
    {
        $config = $this->fieldConfig;
        
        if (!isset($config['class'])) {
            $config['class'] = $this->fieldClass;
        }
        
        return Yii::createObject(ArrayHelper::merge($config, $options, [
            'attribute' => $attribute,
            'form' => $this,
            'label' => $label,
        ]));
    }
public function field($attribute, $label = null, $options = [])
    {
        $config = $this->fieldConfig;
        
        if (!isset($config['class'])) {
            $config['class'] = $this->fieldClass;
        }
        
        return Yii::createObject(ArrayHelper::merge($config, $options, [
            'attribute' => $attribute,
            'form' => $this,
            'label' => $label,
        ]));
    }
public function field ( $ attribute , $ label = null , $ options = [ ] ) { $ config = $ this -> fieldConfig ; if ( ! isset ( $ config [ 'class' ] ) ) { $ config [ 'class' ] = $ this -> fieldClass ; } return Yii :: createObject ( ArrayHelper :: merge ( $ config , $ options , [ 'attribute' => $ attribute , 'form' => $ this , 'label' => $ label , ] ) ) ; }
Generate a field based on attribute name and optional label.

@param string $attribute The name of the field (which also will sent to the callback as this name)
@param string $label Optional Label
@param array $options
@return \luya\admin\ngrest\aw\ActiveField
Generate a field based on attribute name and optional label .