mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Dylan Wagstaff
b6130c4e11
Add unit tests for new ManyManyThrough support
The previous commit (9fa9ef89) added support for the new SilverStripe 4 feature of Many Many relationships through an intermediary object. After much head scratching and community testing, the solution was proven to work, however had no automated tests to confirm as such. This commit rectifies that by testing both versioned and unversioned DataObjects in a many_many through style relationship. Some minor tidy and comments were also added as per feedback on the functionality code changes.
SilverStripe Grid Field Extensions Module
This module provides a number of useful grid field components:
GridFieldAddExistingSearchButton
- a more advanced search form for adding items.GridFieldAddNewInlineButton
- builds onGridFieldEditableColumns
to allow inline creation of records.GridFieldAddNewMultiClass
- lets the user select from a list of classes to create a new record from.GridFieldEditableColumns
- allows inline editing of records.GridFieldOrderableRows
- drag and drop re-ordering of rows.GridFieldRequestHandler
- a basic utility class which can be used to build custom grid field detail views including tabs, breadcrumbs and other CMS features.GridFieldTitleHeader
- a simple header which displays column titles.GridFieldConfigurablePaginator
- a paginator for GridField that allows customisable page sizes.
This branch will aim for compatibility with SilverStripe 4.x.
Installation
composer require symbiote/silverstripe-gridfieldextensions "^3"
For SilverStripe 3.x, please see the compatible branch.
See docs/en/index.md for documentation and examples.
Description
Languages
PHP
80.5%
JavaScript
13.7%
Scheme
3%
CSS
2.8%