PHP Class Prado\Web\UI\WebControls\TDataListItem
A TDataListItem control represents an item in the {@link TDataList} control,
such as heading section, footer section, or a data item.
The index and data value of the item can be accessed via {@link getItemIndex ItemIndex}>
and {@link getDataItem DataItem} properties, respectively. The type of the item
is given by {@link getItemType ItemType} property.
显示文件
Open project: pradosoft/prado
Class Usage Examples
Public Methods
Protected Methods
Method |
Description |
|
createStyle ( ) : TStyle |
Creates a style object for the control. |
|
getTagName ( ) : string |
Returns the tag name used for this control. |
|
Method Details
bubbleEvent()
public method
This method overrides parent's implementation by wrapping event parameter
for OnCommand event with item information.
createStyle()
protected method
This method creates a {@link TTableItemStyle} to be used by a datalist item.
protected createStyle ( ) : TStyle |
return |
TStyle |
control style to be used |
getDataItem()
public method
This property is deprecated since v3.1.0.
getItemIndex()
public method
getItemType()
public method
public getItemType ( ) : TListItemType |
return |
TListItemType |
item type |
getTagName()
protected method
Returns the tag name used for this control.
setDataItem()
public method
This property is deprecated since v3.1.0.
setItemIndex()
public method
If the item is not in the item collection (e.g. it is a header item), -1 should be used.
setItemType()
public method
setTagName()
public method