Commit a615ef94 by ElisDN

Fixed GridView cells calling order

parent 18868771
......@@ -237,12 +237,17 @@ class GridView extends BaseListView
*/
public function renderItems()
{
$caption = $this->renderCaption();
$columnGroup = $this->renderColumnGroup();
$tableHeader = $this->showHeader ? $this->renderTableHeader() : false;
$tableBody = $this->renderTableBody();
$tableFooter = $this->showFooter ? $this->renderTableFooter() : false;
$content = array_filter([
$this->renderCaption(),
$this->renderColumnGroup(),
$this->showHeader ? $this->renderTableHeader() : false,
$this->renderTableBody(),
$this->showFooter ? $this->renderTableFooter() : false,
$caption,
$columnGroup,
$tableHeader,
$tableFooter,
$tableBody,
]);
return Html::tag('table', implode("\n", $content), $this->tableOptions);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment