0 follower

Interface Yiisoft\Yii\DataView\PageSize\PageSizeWidgetInterface

ExtendsStringable
Implemented byYiisoft\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:

Public Methods

Hide inherited 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

Hide inherited methods

render() public abstract method

Renders the page size control.

public abstract render( ): string
return string

The rendered HTML for the page size control.

                public function render(): string;

            
withContext() public abstract method

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;