renderDataCellContent()
보호된 메소드
the string output template or the render callable
The string allows all attribute names from $attributes array and from $attribute string placed between { and }
Example:
'template' => '{name}
{slug}
',
The callable gets two parameters ($model and $column) and has to return output string.
Example:
'template' => function ($model, $column) {
$attributeValues = [];
foreach ($column->attributes as $attribute) {
$attributeValues[] = $model->{$attribute};
}
return $model->{$column->attribute} . Html::tag('small', implode('
', $attributeValues));
},