src/ngrest/aw/ActiveWindowFormField.php
public function dropDownList(array $data, array $options = [])
    {
        $this->element = Angular::select('{model}', '{label}', $data, [
            'fieldid' => $this->form->getFieldId($this->attribute),
            'ng-init' => '{initValue}',
        ]);
        
        return $this;
    }
public function dropDownList(array $data, array $options = [])
    {
        $this->element = Angular::select('{model}', '{label}', $data, [
            'fieldid' => $this->form->getFieldId($this->attribute),
            'ng-init' => '{initValue}',
        ]);
        
        return $this;
    }
public function dropDownList ( array $ data , array $ options = [ ] ) { $ this -> element = Angular :: select ( '{model}' , '{label}' , $ data , [ 'fieldid' => $ this -> form -> getFieldId ( $ this -> attribute ) , 'ng-init' => '{initValue}' , ] ) ; return $ this ; }
Generate a select dropdown with data as array.

@param array $data
@param array $options
@return \luya\admin\ngrest\aw\ActiveField
@since 1.2.2
Generate a select dropdown with data as array .