mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Adds drag and drop functionality to SilverStripe's GridField
20dfa3c9ea
Moved text labels into translations Added class documentation to the GridFieldSortableRows class |
||
---|---|---|
.settings | ||
code/forms | ||
css | ||
javascript | ||
lang | ||
templates/Includes | ||
_config.php | ||
.buildpath | ||
.project | ||
README.md |
SortableGridField
Adds drag and drop functionality to SilverStripe 3.0's GridField
Usage
To enable sorting on a has_many relationship set up an interger field on your data object.
To enable drag and drop sorting on the grid field add the following to your grid field's config Grid Field Config
:::php
$myGridConfig->addComponent(new GridFieldSortableRows('{Column to store sort}'));