Skip to content
PHP Ecosystem
Explore

GridFooter

API reference › Yii3 Debug › Web › GridFooter

final classYii3\Debug\Web\GridFooter
Sourcesrc/Web/GridFooter.php

Renders the shared item count and the DataView pager without owning panel navigation.

MethodDescriptionDefined by
render() staticRenders the item count summary followed by the page controls of the collection.GridFooter
renderForPanel() staticRenders the footer of a panel grid, deriving the counters and page links from the paginator.GridFooter
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\Div

Renders 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

ParameterTypeDescription
$paginatorYiisoft\Data\Paginator\OffsetPaginator<Yii3\Debug\Web\TKey, Yii3\Debug\Web\TValue>Paginator backing the grid.
$pageUrlClosure(string): string|nullBuilds the URL of a page from its number, or null to omit the page controls.

Returns

UIAwesome\Html\Flow\Div: Rendered footer.

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\Div

Renders the footer of a panel grid, deriving the counters and page links from the paginator.

Parameters

ParameterTypeDescription
$paginatorYiisoft\Data\Paginator\OffsetPaginator<Yii3\Debug\Web\TKey, Yii3\Debug\Web\TValue>Paginator backing the grid.
$contextPHPForge\Debug\Panel\PanelRenderContext|nullState of the debugger request, or null to omit the page links.
$queryParamsarray<array-key, mixed>Query parameters the page links are built from.

Returns

UIAwesome\Html\Flow\Div: Rendered footer.