TListItem represents an item in a list control. Each item has a {@link setText Text} property and a {@link setValue Value} property. If either one of them is not set, it will take the value of the other property. An item can be {@link setSelected Selected} or {@link setEnabled Enabled}, and it can have additional {@link getAttributes Attributes} which may be rendered if the list control supports so.
С версии: 3.0
Автор: Qiang Xue (qiang.xue@gmail.com)
Наследование: extends Prado\TComponent
Пример #1
0
 /**
  * @return TListItem new item.
  */
 protected function createNewListItem($text = null)
 {
     $item = new TListItem();
     if ($text !== null) {
         $item->setText($text);
     }
     return $item;
 }