Interface Yiisoft\Yii\DataView\GridView\Column\FilterableColumnRendererInterface
| Extends | Yiisoft\ |
|---|---|
| Implemented by | Yiisoft\ |
Interface for column renderers that support filtering functionality.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| makeFilter() | Creates a filter condition based on user input. | Yiisoft\ |
| renderBody() | Configures a data row cell. | Yiisoft\ |
| renderColumn() | Configures the column container cell. | Yiisoft\ |
| renderFilter() | Renders the filter cell for a column. | Yiisoft\ |
| renderFooter() | Configures the column footer cell. | Yiisoft\ |
| renderHeader() | Configures the column header cell. | Yiisoft\ |
Method Details
Creates a filter condition based on user input.
| public abstract \ | ||
| $column | Yiisoft\ |
The column to create the filter for. |
| $context | Yiisoft\ |
Context containing filter parameters and validation state. |
| return | \ |
The created filter condition, or null if no filter should be applied. |
|---|---|---|
| throws | Yiisoft\ |
When the filter value is invalid or cannot be processed. |
public function makeFilter(ColumnInterface $column, MakeFilterContext $context): ?FilterInterface;
Defined in:
Yiisoft\
Configures a data row cell.
This method is called for each row in the grid to render the column's data cell.
| public abstract Yiisoft\ | ||
| $column | Yiisoft\ |
The column definition to render. |
| $cell | Yiisoft\ |
The body cell to configure. |
| $context | Yiisoft\ |
Row-specific data and rendering context. |
| return | Yiisoft\ |
The configured data cell. |
|---|---|---|
public function renderBody(ColumnInterface $column, Cell $cell, DataContext $context): Cell;
Defined in:
Yiisoft\
Configures the column container cell.
This method is called once per column to set up the container that will hold all the column's cells.
| public abstract Yiisoft\ | ||
| $column | Yiisoft\ |
The column definition to render. |
| $cell | Yiisoft\ |
The cell container to configure. |
| $context | Yiisoft\ |
Global grid rendering context. |
| return | Yiisoft\ |
The configured column container cell. |
|---|---|---|
public function renderColumn(ColumnInterface $column, Cell $cell, GlobalContext $context): Cell;
Renders the filter cell for a column.
| public abstract Yiisoft\ | ||
| $column | Yiisoft\ |
The column to render the filter for. |
| $cell | Yiisoft\ |
The cell container to render into. |
| $context | Yiisoft\ |
Context containing filter state and validation results. |
| return | Yiisoft\ |
The rendered filter cell, or |
|---|---|---|
public function renderFilter(ColumnInterface $column, Cell $cell, FilterContext $context): ?Cell;
Defined in:
Yiisoft\
Configures the column header cell.
| public abstract Yiisoft\ | ||
| $column | Yiisoft\ |
The column definition to render. |
| $cell | Yiisoft\ |
The header cell to configure. |
| $context | Yiisoft\ |
Global grid rendering context. |
| return | Yiisoft\ |
The configured header cell, or |
|---|---|---|
public function renderHeader(ColumnInterface $column, Cell $cell, GlobalContext $context): ?Cell;
User Contributed Notes
Leave a comment
Join the conversation to share a note.