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
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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