Interface Yiisoft\Yii\DataView\GridView\Column\SortableColumnRendererInterface
| Implemented by | Yiisoft\Yii\DataView\GridView\Column\DataColumnRenderer |
|---|
Interface for column renderers that support sorting functionality.
This interface defines the contract for column renderers that need to provide sorting capabilities. It allows columns to specify which properties can be sorted.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getOrderProperties() | Gets the properties that can be sorted by this column. | Yiisoft\Yii\DataView\GridView\Column\SortableColumnRendererInterface |
Method Details
Gets the properties that can be sorted by this column.
For example:
['fullName', 'joinDate']
| public abstract array getOrderProperties ( Yiisoft\Yii\DataView\GridView\Column\ColumnInterface $column ) | ||
| $column | Yiisoft\Yii\DataView\GridView\Column\ColumnInterface |
The column instance being rendered. |
| return | array |
The properties that can be sorted by this column. |
|---|---|---|
public function getOrderProperties(ColumnInterface $column): array;
Signup or Login in order to comment.