\RelationEditorField
Synopsis
class RelationEditorField
extends ReactFormField
{
- // members
- protected GriddleField $grid;
- private static array $allowed_actions = ;
- // methods
- public void __construct()
- public SS_List getList()
- public GriddleFieldSource getSource()
- public GriddleField getGrid()
- public SS_HTTPResponse handleDeleteAction()
- public SS_HTTPResponse handlePostAction()
- public SS_HTTPResponse handleGetAction()
- public SS_HTTPResponse getInitialProperties()
- public SS_HTTPResponse GriddleField()
- // Inherited methods from ReactFormField
- public mixed index()
- public string getComponentID()
- protected void requireDependencies()
- public HTMLText Field()
Hierarchy
Extends
Members
Methods
public
- __construct()
- GriddleField() — Send the request to the GriddleField
- getGrid() — Returns the GriddleField
- getInitialProperties() — Returns the initial properties required to instantiate the RelationEditorField component
- getList() — Returns the SS_List attached to the associated GriddleFieldSource
- getSource() — Returns the GriddleFieldSource
- handleDeleteAction() — Returns the serialized data list after the requested relation has been deleted
- handleGetAction() — Returns the serialized data list form the relation search
- handlePostAction() — Returns the serialized data list after the requested relation has been created
Inherited from ReactFormField
protected
- requireDependencies() — Traverses the class hierarchy to determine the required frontend dependencies required from configuration
public
- Field() — Render the react component by calling window.createReactField from the template, this element will be replaced when the component mounts
- getComponentID() — Returns a hash of the current field name and the RequestHandler link. This will be used as a global identification for LocalStorage
- index() — Maps the http method to action handlers. Forces the response to have application/json content type. Unhandled methods will return a 404 response code.