public renderPageSummary ( ) : string | ||
Résultat | string | the rendering result. |
public function renderPageSummary()
{
if (!$this->showPageSummary) {
return null;
}
$cells = [];
/** @var DataColumn $column */
foreach ($this->columns as $column) {
$cells[] = $column->renderPageSummaryCell();
}
$tag = ArrayHelper::remove($this->pageSummaryContainer, 'tag', 'tbody');
$content = Html::tag('tr', implode('', $cells), $this->pageSummaryRowOptions);
return Html::tag($tag, $content, $this->pageSummaryContainer);
}