Sortable is a suite of five classes to interactively handle the sorting (or ordering) of ActiveRecords. Simple sorting is supported, but also sorting of related data in one-to-many, and in many-to-many relations.
There are two widgets:
- SortableGridView - extended GridView;
- SortableListView - extended ListView.
In both widgets, items can be moved to another position by means of drag and drop, using jQuery UI widgets.
Two classes are ActiveRecord Behaviors:
- Sortable - to handle simple sorting and one-to-many sorting;
- MMSortable - to handle many-to-many sorting.
Finally, there's one utility class:
- PivotRecord - base class for the ActiveRecord of the pivot table in a many-to-many relation.
Requirements ¶
Yii 2.0
Your home page look clean and well, so I guess your software should be good too:)
as title.
Nice Behavior
I was considering doing something like this. Unfortunately, it's quite close to what I needed but not exactly.
Some of the documentation is not identical:
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.