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
Show file 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 property

public callable $scope
return callable

$sortableAttribute public property

database field name for row sorting
public $sortableAttribute