octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 23:50:38 +08:00
gridview header/footer fix
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 1 changed files with 5 additions and 4 deletions
@@ -279,13 +279,14 @@ class GridView extends BaseListView
|
|||||||
/** @var Column $column */
|
/** @var Column $column */
|
||||||
$cells[] = $column->renderHeaderCell();
|
$cells[] = $column->renderHeaderCell();
|
||||||
}
|
}
|
||||||
$content = implode('', $cells);
|
$content = Html::tag('tr', implode('', $cells), $this->headerRowOptions);
|
||||||
if ($this->filterPosition == self::FILTER_POS_HEADER) {
|
if ($this->filterPosition == self::FILTER_POS_HEADER) {
|
||||||
$content = $this->renderFilters() . $content;
|
$content = $this->renderFilters() . $content;
|
||||||
} elseif ($this->filterPosition == self::FILTER_POS_BODY) {
|
} elseif ($this->filterPosition == self::FILTER_POS_BODY) {
|
||||||
$content .= $this->renderFilters();
|
$content .= $this->renderFilters();
|
||||||
}
|
}
|
||||||
return "<thead>\n" . Html::tag('tr', $content, $this->headerRowOptions) . "\n</thead>";
|
|
||||||
|
return "<thead>\n" . $content . "\n</thead>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -299,11 +300,11 @@ class GridView extends BaseListView
|
|||||||
/** @var Column $column */
|
/** @var Column $column */
|
||||||
$cells[] = $column->renderFooterCell();
|
$cells[] = $column->renderFooterCell();
|
||||||
}
|
}
|
||||||
$content = implode('', $cells);
|
$content = Html::tag('tr', implode('', $cells), $this->footerRowOptions);
|
||||||
if ($this->filterPosition == self::FILTER_POS_FOOTER) {
|
if ($this->filterPosition == self::FILTER_POS_FOOTER) {
|
||||||
$content .= $this->renderFilters();
|
$content .= $this->renderFilters();
|
||||||
}
|
}
|
||||||
return "<tfoot>\n" . Html::tag('tr', $content, $this->footerRowOptions) . "\n</tfoot>";
|
return "<tfoot>\n" . $content . "\n</tfoot>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user