Interface \Prado\Web\UI\WebControls\IItemDataRenderer
IItemDataRenderer interface.
Namespace: \Prado\Web\UI\WebControlsIItemDataRenderer defines the interface that an item renderer needs to implement. Besides the \Prado\Web\UI\WebControls\getData property, a list item renderer also needs to provide \Prado\Web\UI\WebControls\getItemIndex and \Prado\Web\UI\WebControls\getItemType property.
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.1.0
public
|
getItemIndex() : int
Returns a value indicating the zero-based index of the item in the corresponding data control's item collection.
If the item is not in the collection (e.g. it is a header item), it returns -1. |
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
|
getData, setData |