@@ -104,7 +104,7 @@ public function setName($_name) {
104104 }
105105
106106
107- public static function radios ($ name , $ items =array (), $ label =NULL , $ value =null , $ type =NULL ) {
107+ public static function radios ($ identifier , $ name , $ items =array (), $ label =NULL , $ value =null , $ type =NULL ) {
108108 $ fields =array ();
109109 $ i =0 ;
110110 foreach ( $ items as $ val => $ caption ) {
@@ -114,13 +114,13 @@ public static function radios($name, $items=array(), $label=NULL, $value=null, $
114114 }
115115 $ fields []=$ itemO ;
116116 }
117- $ radios =new HtmlFormFields (" fields- " . $ name , $ fields );
117+ $ radios =new HtmlFormFields ($ identifier , $ fields );
118118 if (isset ($ label ))
119119 $ radios ->setLabel ($ label )->setProperty ("for " , $ name );
120120 return $ radios ;
121121 }
122122
123- public static function checkeds ($ name , $ items =array (), $ label =NULL , $ values =array (), $ type =NULL ) {
123+ public static function checkeds ($ identifier , $ name , $ items =array (), $ label =NULL , $ values =array (), $ type =NULL ) {
124124 $ fields =array ();
125125 $ i =0 ;
126126 foreach ( $ items as $ val => $ caption ) {
@@ -131,7 +131,7 @@ public static function checkeds($name, $items=array(), $label=NULL, $values=arra
131131 }
132132 $ fields []=$ itemO ;
133133 }
134- $ radios =new HtmlFormFields (" fields- " . $ name , $ fields );
134+ $ radios =new HtmlFormFields ($ identifier , $ fields );
135135 if (isset ($ label ))
136136 $ radios ->setLabel ($ label )->setProperty ("for " , $ name );
137137 return $ radios ;
@@ -141,4 +141,9 @@ public function setEqualWidth($_equalWidth) {
141141 $ this ->_equalWidth =$ _equalWidth ;
142142 return $ this ;
143143 }
144+
145+ public function run (JsUtils $ js ){
146+ $ result = parent ::run ($ js );
147+ return $ result ->setItemSelector ("[data-value] " );
148+ }
144149}
0 commit comments