<?php
 class groupField extends baseField { var $Conf = array( 'xtype' => 'fieldcontainer', 'setAutoSize' => true, 'layout' => array( 'type' => 'hbox', 'pack' => 'start', 'align'=> 'stretch' ), 'defaults' => array('labelWidth'=> 'auto','margins' =>'0 30 0 0'), ); function edit($addConf,$R) { if(!$this->AllEls) { } $R['items'] = array(); if($addConf['attr']['nr']) { for($i=$addConf['attr']['nr'];$i>=1;$i--) { $El = $this->AllEls[count($this->AllEls)-$i]; unset($El['width']); $R['items'][] = $El; } } return parent::edit($addConf,$R); } function editAllREl($allREl,$addConf,$R) { $this->AllEls = $allREl; for($i=1;$i<=$addConf['attr']['nr'];$i++) { unset($allREl[count($allREl)-1]); } return $allREl; } } 