Interface Yiisoft\Yii\DataView\Pagination\PaginationWidgetInterface
| Extends | Stringable |
|---|---|
| Implemented by | Yiisoft\ |
Interface for widgets that render pagination controls.
See also:
- Yiisoft\
Yii\ A keyset-based pagination implementation.DataView\ Pagination\ KeysetPagination - Yiisoft\
Yii\ An offset-based pagination implementation.DataView\ Pagination\ OffsetPagination
Public Methods
| Method | Description | Defined By |
|---|---|---|
| context() | Creates a new instance with the specified pagination context. | Yiisoft\ |
| paginator() | Creates a new instance with the specified paginator. | Yiisoft\ |
| render() | Renders the pagination controls. | Yiisoft\ |
Method Details
Creates a new instance with the specified pagination context.
| public abstract static context ( Yiisoft\ | ||
| $context | Yiisoft\ |
The pagination context to use. |
| return | static |
New instance with the specified context. |
|---|---|---|
public function context(PaginationContext $context): static;
Creates a new instance with the specified paginator.
| public abstract static paginator ( \ | ||
| $paginator | \ |
The paginator to use. |
| return | static |
New instance with the specified paginator. |
|---|---|---|
| throws | Yiisoft\ |
If the paginator type is not supported by the implementation. |
public function paginator(PaginatorInterface $paginator): static;
User Contributed Notes
Leave a comment
Join the conversation to share a note.