PHP Class himiklab\sortablegrid\SortableGridBehavior

For example: php public function behaviors() { return [ 'sort' => [ 'class' => SortableGridBehavior::className(), 'sortableAttribute' => 'sortOrder', 'scopeAttribute' => null ], ]; }
Author: HimikLab
Inheritance: extends yii\base\Behavior
显示文件 Open project: himiklab/yii2-sortable-grid-view-widget Class Usage Examples

Public Properties

Property Type Description
$scope callable
$sortableAttribute database field name for row sorting

Public Methods

Method Description
beforeInsert ( )
events ( )
gridSort ( $items )

Method Details

beforeInsert() public method

public beforeInsert ( )

events() public method

public events ( )

gridSort() public method

public gridSort ( $items )

Property Details

$scope public_oe property

public callable $scope
return callable

$sortableAttribute public_oe property

database field name for row sorting
public $sortableAttribute