Class \Prado\Web\UI\WebControls\TItemDataRenderer
TItemDataRenderer class
TItemDataRenderer is the convient base class for template-based item data renderers. It implements the IItemDataRenderer interface, and because TItemDataRenderer extends from TTemplateControl, derived child classes can have templates to define their presentational layout.
The following properties are provided by TItemDataRenderer:
- \Prado\Web\UI\WebControls\getItemIndex: zero-based index of this renderer in the item list collection.
- \Prado\Web\UI\WebControls\getItemType: item type of this renderer, such as TListItemType::AlternatingItem
- \Prado\Web\UI\WebControls\getData: data associated with this renderer
Class hierarchy
- \Prado\Web\UI\WebControls\TItemDataRenderer implements IItemDataRenderer
- \Prado\Web\UI\WebControls\TDataRenderer implements IDataRenderer
- \Prado\Web\UI\TTemplateControl
- \Prado\Web\UI\TCompositeControl implements INamingContainer
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1.2
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
|