20 $this->_equalWidth=$equalWidth;
24 public function addFields($fields=NULL, $label=NULL) {
26 if (!\is_array($fields)) {
27 $fields=\func_get_args();
29 if (\is_string($end)) {
38 foreach ( $fields as $field ) {
51 if (\is_string($label)) {
61 $item->setContainer($this);
73 if ($this->_equalWidth) {
74 $count=$this->
count();
78 return parent::compile($js, $view);
82 $this->_equalWidth=
false;
83 return $this->
getItem($index)->setWidth($width);
87 $this->_equalWidth=
false;
93 $this->_equalWidth=
false;
107 public static function radios(
$identifier,$name, $items=array(), $label=NULL, $value=null, $type=NULL) {
110 foreach ( $items as $val => $caption ) {
111 $itemO=
new HtmlFormRadio($name.
"-".$i++, $name, $caption, $val, $type);
113 $itemO->getDataField()->setProperty(
"checked",
"");
119 $lbl=$radios->setLabel($label);
121 $lbl->setProperty(
"for", $name);
127 public static function checkeds(
$identifier,$name, $items=array(), $label=NULL, $values=array(), $type=NULL) {
130 foreach ( $items as $val => $caption ) {
132 $itemO->setName($name);
133 if (\array_search($val, $values)!==
false) {
134 $itemO->getDataField()->setProperty(
"checked",
"");
140 $radios->setLabel($label)->setProperty(
"for", $name);
addToProperty($name, $value, $separator=" ")
insertItem($item, $position=0)
Base class for Semantic double elements.
Base class for Semantic Html collections.