widgets\ListView $itemView

$itemView public property

The name of the view for rendering each data item, or a callback (e.g. an anonymous function) for rendering each data item. If it specifies a view name, the following variables will be available in the view:

  • $model: mixed, the data model
  • $key: mixed, the key value associated with the data item
  • $index: integer, the zero-based index of the data item in the items array returned by $dataProvider.
  • $widget: ListView, this widget instance

Note that the view name is resolved into the view file by the current context of the $view object.

If this property is specified as a callback, it should have the following signature:

function ($model, $key, $index, $widget)
public string|callable $itemView = null
doc_Yii
2016-10-30 17:18:31
Comments
Leave a Comment

Please login to continue.