dev-master
9999999-dev https://github.com/tsvetannA sortable grid view for Yii2
MIT
The Requires
- php >=5.4.0
- yiisoft/yii2-jui *
sortable gridview jquery sortable
A sortable grid view for Yii2
Yii2 Sortable Gridview, (*1)
Sometimes one needs a more complex jquery sortable element such that you can filter the elements in a bigger database and then be able to sort the results. Sortable Gridview fulfills this gap, (*2)
There is an additional attribute available sortOptions = []
. It takes options from the jquery ui sortable, (*3)
echo SortableGridview::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $filterModel, 'options' => [ 'id' => 'targetTable', 'class' => 'grid-view' ], 'sortOptions' => [ 'placeholder' => 'ui-state-highlight', 'cursor' => 'move', 'receive' => new JsExpression("function(event, ui) { console.log('receive'); }"), 'change' => new JsExpression("function(event, ui) { console.log('change'); }"), ], 'columns' => [ 'id', 'title', ], ]);
require: "tsvetann/sortablegridview": "dev-master", (*4)
A sortable grid view for Yii2
MIT
sortable gridview jquery sortable