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.
Since: 3.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends Prado\TComponent
Esempio n. 1
0
 /**
  * @return TListItem new item.
  */
 protected function createNewListItem($text = null)
 {
     $item = new TListItem();
     if ($text !== null) {
         $item->setText($text);
     }
     return $item;
 }