Interface Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface
| Extends | Stringable |
|---|---|
| Implemented by | Yiisoft\ |
Interface for widgets that allow users to control the number of items displayed per page.
See also:
- Yiisoft\
Yii\ A text input implementation.DataView\ PageSize\ InputPageSize - Yiisoft\
Yii\ A dropdown implementation.DataView\ PageSize\ SelectPageSize
Public Methods
| Method | Description | Defined By |
|---|---|---|
| render() | Renders the page size control. | Yiisoft\ |
| withContext() | Creates a new instance with the specified page size context. | Yiisoft\ |
Method Details
Renders the page size control.
| public abstract string render ( ) | ||
| return | string |
The rendered HTML for the page size control. |
|---|---|---|
public function render(): string;
Creates a new instance with the specified page size context.
| public abstract static withContext ( Yiisoft\ | ||
| $context | Yiisoft\ |
The page size context to use. |
| return | static |
New instance with the specified context. |
|---|---|---|
public function withContext(PageSizeContext $context): static;
User Contributed Notes
Leave a comment
Join the conversation to share a note.