Commit a615ef94 by ElisDN

Fixed GridView cells calling order

parent 18868771
...@@ -237,12 +237,17 @@ class GridView extends BaseListView ...@@ -237,12 +237,17 @@ class GridView extends BaseListView
*/ */
public function renderItems() 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([ $content = array_filter([
$this->renderCaption(), $caption,
$this->renderColumnGroup(), $columnGroup,
$this->showHeader ? $this->renderTableHeader() : false, $tableHeader,
$this->renderTableBody(), $tableFooter,
$this->showFooter ? $this->renderTableFooter() : false, $tableBody,
]); ]);
return Html::tag('table', implode("\n", $content), $this->tableOptions); 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