DNADesign\ElementalVirtual\Forms\ElementalGridFieldAddExistingAutocompleter
This class is is responsible for adding objects to another object's has_many and many_many relation, as defined by the {@link RelationList} passed to the {@link GridField} constructor.
Objects can be searched through an input field (partially matching one or
more fields).
Selecting from the results will add the object to the relation.
Often used alongside for detaching existing
records from a relationship.
For easier setup, have a look at a sample configuration in
.
Synopsis
class ElementalGridFieldAddExistingAutocompleter
extends GridFieldAddExistingAutocompleter
{
- // methods
- public SS_List getManipulatedData()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridFieldAddExistingAutocompleter
Methods
public
- getManipulatedData() — If an object ID is set, add the object to the list