0 follower

Interface Yiisoft\Yii\DataView\GridView\Column\SortableColumnRendererInterface

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

Hide inherited methods

Method Description Defined By
getOrderProperties() Gets the properties that can be sorted by this column. Yiisoft\Yii\DataView\GridView\Column\SortableColumnRendererInterface

Method Details

Hide inherited methods

getOrderProperties() public abstract method

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;