@@ 119-125 (lines=7) @@ | ||
116 | }, $index,$attributes,"ck"); |
|
117 | } |
|
118 | ||
119 | public function fieldAsDropDown($index,$elements=[],$multiple=false,$attributes=NULL){ |
|
120 | return $this->_fieldAs(function($id,$name,$value) use($elements,$multiple){ |
|
121 | $dd=new HtmlDropdown($id,$value,$elements); |
|
122 | $dd->asSelect($name,$multiple); |
|
123 | return $dd; |
|
124 | }, $index,$attributes,"dd"); |
|
125 | } |
|
126 | } |
@@ 103-109 (lines=7) @@ | ||
100 | }, $index,$attributes); |
|
101 | } |
|
102 | ||
103 | public function fieldAsDropDown($index,$elements=[],$multiple=false,$attributes=NULL){ |
|
104 | return $this->_fieldAs(function($id,$name,$value,$caption) use ($elements,$multiple){ |
|
105 | $dd=new HtmlFormDropdown($id,$elements,$caption,$value,$multiple); |
|
106 | $dd->setName($name); |
|
107 | return $dd; |
|
108 | }, $index,$attributes); |
|
109 | } |
|
110 | ||
111 | public function fieldAsMessage($index,$attributes=NULL){ |
|
112 | return $this->_fieldAs(function($id,$name,$value,$caption){ |