Пример #1
0
 protected function _init()
 {
     parent::_init();
     $cards = $this->fields->first();
     $gen = Kwc_Abstract::getSetting($this->getClass(), 'generators');
     $classes = $gen['child']['component'];
     $cards->getCombobox()->setData(new Kwc_Basic_LinkTag_Form_Data($classes));
     $cards->getCombobox()->getData()->cards = $cards->fields;
 }
Пример #2
0
 protected function _init()
 {
     parent::_init();
     $this->setCls('kwc-basic-linktag-form');
     $cards = $this->fields->first();
     $gen = Kwc_Abstract::getSetting($this->getClass(), 'generators');
     $classes = $gen['child']['component'];
     $cards->getCombobox()->setXtype('kwc.basic.linktag.combobox')->setData(new Kwc_Basic_LinkTag_Form_Data($classes));
     $cards->getCombobox()->getData()->cards = $cards->fields;
     $fs = $this->add(new Kwf_Form_Container_FieldSet('SEO'));
     $fs->setCls('kwc-basic-linktag-seo');
     $fs->setCollapsible(true);
     $fs->setCollapsed(true);
     $fs->add(new Kwf_Form_Field_TextField('title_text', 'Link Title'))->setWidth(300)->setHelpText(trlKwf('Optional. Description of the link or the link target. Some browsers show the text as a tooltip when the mouse pointer is hovering the link.'));
 }