renderTableRow() public method

Renders a table row with the given data model and key.
public renderTableRow ( mixed $model, mixed $key, integer $index ) : string
$model mixed the data model to be rendered
$key mixed the key associated with the data model
$index integer the zero-based index of the data model among the model array returned by [[dataProvider]].
return string the rendering result
示例#1
0
 public function renderTableRow($model, $key, $index)
 {
     if ($this->filterRow !== null && call_user_func($this->filterRow, $model, $key, $index, $this) === false) {
         return '';
     }
     return parent::renderTableRow($model, $key, $index);
 }