setEmptyTemplate() public method

public setEmptyTemplate ( $value )
Exemplo n.º 1
0
 /**
  * @return TRepeater new instance of TRepater to render the list of suggestions.
  */
 protected function createRepeater()
 {
     $repeater = new TRepeater();
     $repeater->setHeaderTemplate(new TAutoCompleteTemplate('<ul>'));
     $repeater->setFooterTemplate(new TAutoCompleteTemplate('</ul>'));
     $repeater->setItemTemplate(new TTemplate('<li><%# $this->DataItem %></li>', null));
     $repeater->setEmptyTemplate(new TAutoCompleteTemplate('<ul></ul>'));
     $this->getControls()->add($repeater);
     return $repeater;
 }
Exemplo n.º 2
0
 /**
  * @return TRepeater new instance of TRepater to render the list of Selectables.
  */
 protected function createRepeater()
 {
     $repeater = new TRepeater();
     $repeater->setHeaderTemplate(new TJuiSelectableTemplate('<ul id="' . $this->getWidgetID() . '">'));
     $repeater->setFooterTemplate(new TJuiSelectableTemplate('</ul>'));
     $repeater->setItemTemplate(new TTemplate('<li id="<%# $this->ItemIndex %>"><%# $this->DataItem %></li>', null));
     $repeater->setEmptyTemplate(new TJuiSelectableTemplate('<ul></ul>'));
     $this->getControls()->add($repeater);
     return $repeater;
 }