Interface Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface
| Extends | Stringable |
|---|---|
| Implemented by | Yiisoft\Yii\DataView\PageSize\InputPageSize, Yiisoft\Yii\DataView\PageSize\SelectPageSize |
Interface for widgets that allow users to control the number of items displayed per page.
See also:
- Yiisoft\Yii\DataView\PageSize\InputPageSize A text input implementation.
- Yiisoft\Yii\DataView\PageSize\SelectPageSize A dropdown implementation.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| render() | Renders the page size control. | Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface |
| withContext() | Creates a new instance with the specified page size context. | Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface |
Method Details
Renders the page size control.
| public abstract render( ): string | ||
| 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 withContext( Yiisoft\Yii\DataView\PageSize\PageSizeContext $context ): Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface | ||
| $context | Yiisoft\Yii\DataView\PageSize\PageSizeContext |
The page size context to use. |
| return | Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface |
New instance with the specified context. |
|---|---|---|
public function withContext(PageSizeContext $context): static;
Signup or Login in order to comment.