PHP Класс yii\widgets\LinkSorter

LinkSorter will generate a hyperlink for every attribute declared in [[sort]]. For more details and usage information on LinkSorter, see the guide article on sorting.
С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends yii\base\Widget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$attributes list of the attributes that support sorting. If not set, it will be determined using [[Sort::attributes]].
$linkOptions HTML attributes for the link in a sorter container tag which are passed to [[Sort::link()]].
$options HTML attributes for the sorter container tag.
$sort the sort definition

Открытые методы

Метод Описание
init ( ) Initializes the sorter.
run ( ) Executes the widget.

Защищенные методы

Метод Описание
renderSortLinks ( ) : string Renders the sort links.

Описание методов

init() публичный Метод

Initializes the sorter.
public init ( )

run() публичный Метод

This method renders the sort links.
public run ( )

Описание свойств

$attributes публичное свойство

list of the attributes that support sorting. If not set, it will be determined using [[Sort::attributes]].
public $attributes

$linkOptions публичное свойство

HTML attributes for the link in a sorter container tag which are passed to [[Sort::link()]].
См. также: yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
С версии: 2.0.6
public $linkOptions

$options публичное свойство

HTML attributes for the sorter container tag.
См. также: yii\helpers\Html::ul() for special attributes.
См. также: yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
public $options

$sort публичное свойство

the sort definition
public $sort