mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Update README.md
This commit is contained in:
parent
c343bad7d0
commit
a561953c66
22
README.md
22
README.md
@ -1,4 +1,24 @@
|
||||
SortableGridField
|
||||
=================
|
||||
|
||||
Adds drag and drop functionality to SilverStripe 3.0's GridField
|
||||
Adds drag and drop functionality to SilverStripe 3.0's GridField
|
||||
|
||||
## Usage
|
||||
*mysite/_config.php*
|
||||
|
||||
:::php
|
||||
GridFieldSortableObject::add_sortable_class('{ClassName}'); //For has_many relationships
|
||||
|
||||
GridFieldSortableObject::add_sortable_many_many_relation('{Owner ClassName}', '{Component Name}'); //For many_many relationships
|
||||
|
||||
*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
|
||||
|
||||
|
||||
## Credits
|
||||
GridFieldSortableObject is based off of dataobject_manager's SortableDataObject class by @unclecheese
|
Loading…
Reference in New Issue
Block a user