/**
  * Renders the repeater by writing a span tag with the container id obtained from {@link getContainerID()}
  * which will be called by the replacement method of the client script to update it's content.
  * @param THtmlWriter writer for the rendering purpose
  */
 private function renderDataList($writer)
 {
     $writer->write('<span id="' . $this->getContainerID() . '">');
     parent::render($writer);
     $writer->write('</span>');
 }
Beispiel #2
0
 /**
  * Instantiates the template.
  * It creates a {@link TDataList} control.
  * @param TControl parent to hold the content within the template
  */
 public function instantiateIn($parent)
 {
     $dataList = new TDataList();
     $dataList->setID(TWizard::ID_SIDEBAR_LIST);
     $dataList->getSelectedItemStyle()->getFont()->setBold(true);
     $dataList->setItemTemplate(new TWizardSideBarListItemTemplate());
     $parent->getControls()->add($dataList);
 }