mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed document
This commit is contained in:
parent
a561953c66
commit
d075e856bc
@ -4,6 +4,7 @@ SortableGridField
|
||||
Adds drag and drop functionality to SilverStripe 3.0's GridField
|
||||
|
||||
## Usage
|
||||
To enable sorting on a data object add one of the following you your sites _config.php
|
||||
*mysite/_config.php*
|
||||
|
||||
:::php
|
||||
@ -11,10 +12,14 @@ Adds drag and drop functionality to SilverStripe 3.0's GridField
|
||||
|
||||
GridFieldSortableObject::add_sortable_many_many_relation('{Owner ClassName}', '{Component Name}'); //For many_many relationships
|
||||
|
||||
|
||||
To enable sorting on the grid field add the following to your grid field's config
|
||||
*Grid Field Config*
|
||||
|
||||
:::php
|
||||
$myGridConfig->addComponent(new GridFieldSortableRows());
|
||||
|
||||
|
||||
## Known Isuses
|
||||
* Many_many relationship is largely untested and may not work as expected
|
||||
* Documentation on GridFieldSortableObject is very poor
|
||||
|
Loading…
Reference in New Issue
Block a user