Class \Prado\Web\UI\WebControls\TDataListItem
TDataListItem class
A TDataListItem control represents an item in the TDataList control, such as heading section, footer section, or a data item. The index and data value of the item can be accessed via \Prado\Web\UI\WebControls\getItemIndex> and \Prado\Web\UI\WebControls\getData properties, respectively. The type of the item is given by \Prado\Web\UI\WebControls\getItemType property.
Class hierarchy
- \Prado\Web\UI\WebControls\TDataListItem implements INamingContainer, IItemDataRenderer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
bubbleEvent(TControl $sender, TEventParameter $param) : bool
This method overrides parent's implementation by wrapping event parameter
for <b>OnCommand</b> event with item information.
|
public
|
|
public
|
getItemIndex() : int
Returns a value indicating the zero-based index of the item in the corresponding data control's item collection.
|
public
|
|
public
|
|
public
|
setItemIndex(int $value) : mixed
Sets the zero-based index for the item.
If the item is not in the item collection (e.g. it is a header item), -1 should be used. |
public
|
|
public
|
|
protected
|
createStyle() : TStyle
Creates a style object for the control.
This method creates a TTableItemStyle to be used by a datalist item. |
protected
|