/** * @return void */ public function initializeObject() { parent::initializeObject(); $this->createField('Input', 'size')->setDefault(1)->setValidate('trim,int')->setSize(3); $this->createField('Input', 'items'); $section = $this->createContainer('Section', 'customItems'); $item = $section->createContainer('Object', 'item'); $item->createField('Input', 'label'); $item->createField('Input', 'value'); $this->createField('Checkbox', 'multiple')->setDefault(''); }
/** * CONSTRUCTOR */ public function initializeObject() { parent::initializeObject(); $this->createSliderFieldAndWizard('rows'); $this->createSliderFieldAndWizard('cols'); }
/** * @return void */ public function initializeObject() { parent::initializeObject(); $this->createContainer('Section', 'fields'); $this->createRegisteredInputObjects(); }
/** * @return void */ public function initializeObject() { parent::initializeObject(); $this->createField('Checkbox', 'checked'); }