# GridFooter

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

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Web](/docs/extensions/yii3-debug/reference/web/index.md) › GridFooter

| final class | `Yii3\Debug\Web\GridFooter` |
| --- | --- |
| Source | [`src/Web/GridFooter.php`](https://github.com/yii3/debug/blob/main/src/Web/GridFooter.php#L19) |

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

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders the item count summary followed by the page controls of the collection. | `GridFooter` |
| [`renderForPanel()`](#method-renderForPanel) static | Renders the footer of a panel grid, deriving the counters and page links from the paginator. | `GridFooter` |

## Method details

### render() <span id="method-render"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$paginator` | `Yiisoft\Data\Paginator\OffsetPaginator<Yii3\Debug\Web\TKey, Yii3\Debug\Web\TValue>` | Paginator backing the grid. |
| `$pageUrl` | [`Closure`](https://www.php.net/manual/en/class.closure.php)`(string): string\|null` | Builds the URL of a page from its number, or `null` to omit the page controls. |

**Returns**

[`UIAwesome\Html\Flow\Div`](/docs/extensions/html/reference/flow/div/index.md): Rendered footer.

### renderForPanel() <span id="method-renderForPanel"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$paginator` | `Yiisoft\Data\Paginator\OffsetPaginator<Yii3\Debug\Web\TKey, Yii3\Debug\Web\TValue>` | Paginator backing the grid. |
| `$context` | `PHPForge\Debug\Panel\PanelRenderContext\|null` | State of the debugger request, or `null` to omit the page links. |
| `$queryParams` | `array<array-key, mixed>` | Query parameters the page links are built from. |

**Returns**

[`UIAwesome\Html\Flow\Div`](/docs/extensions/html/reference/flow/div/index.md): Rendered footer.