GridFooter
API reference › Yii3 Debug › Web › GridFooter
Renders the shared item count and the DataView pager without owning panel navigation.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Renders the item count summary followed by the page controls of the collection. | GridFooter |
renderForPanel() static | Renders the footer of a panel grid, deriving the counters and page links from the paginator. | GridFooter |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(Yiisoft\Data\Paginator\OffsetPaginator<Yii3\Debug\Web\TKey, Yii3\Debug\Web\TValue> $paginator, Closure(string): string|null $pageUrl = null): UIAwesome\Html\Flow\DivRenders the item count summary followed by the page controls of the collection.
The pager renders nothing while the rows fit on a single page, and a control leading nowhere renders as an
inert span instead of a link.
Parameters
| Parameter | Type | Description |
|---|---|---|
$paginator | Yiisoft\ | Paginator backing the grid. |
$pageUrl | Closure(string): string| | Builds the URL of a page from its number, or null to omit the page controls. |
Returns
UIAwesome\Html\Flow\Div: Rendered footer.
renderForPanel()
Section titled “renderForPanel() ”public static function renderForPanel(Yiisoft\Data\Paginator\OffsetPaginator<Yii3\Debug\Web\TKey, Yii3\Debug\Web\TValue> $paginator, PHPForge\Debug\Panel\PanelRenderContext|null $context, array<array-key, mixed> $queryParams): UIAwesome\Html\Flow\DivRenders the footer of a panel grid, deriving the counters and page links from the paginator.
Parameters
| Parameter | Type | Description |
|---|---|---|
$paginator | Yiisoft\ | Paginator backing the grid. |
$context | PHPForge\ | State of the debugger request, or null to omit the page links. |
$queryParams | array<array-key, | Query parameters the page links are built from. |
Returns
UIAwesome\Html\Flow\Div: Rendered footer.