Symbiote\GridFieldExtensions\GridFieldEditableColumns
Allows inline editing of grid field records without having to load a separate edit interface.
The form fields used can be configured by setting the value in to one
of the following forms:
- A Closure which returns the field instance.
- An array with a `callback` key pointing to a function which returns the field.
- An array with a `field` key->response specifying the field class to use.
Synopsis
class GridFieldEditableColumns
extends GridFieldDataColumns
implements
GridField_HTMLProvider,GridField_SaveHandler,GridField_URLHandler
{
- // constants
- const POST_KEY = 'GridFieldEditableColumns';
- // members
- private static array $allowed_actions = ;
- protected array $forms = ;
- // methods
- public void getColumnContent()
- public void getHTMLFragments()
- public void handleSave()
- public Form handleForm()
- public void getURLHandlers()
- public FieldList getFields()
- public Form getForm()
- protected void getFieldName()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridFieldDataColumns
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_SaveHandler
- SilverStripe\Forms\GridField\GridField_URLHandler
Constants
Name | Value |
---|---|
POST_KEY | 'GridFieldEditableColumns' |
Members
private
- $allowed_actions
protected
- $forms — array
Methods
protected
public
- getColumnContent()
- getFields() — Gets the field list for a record.
- getForm() — Gets the form instance for a record.
- getHTMLFragments()
- getURLHandlers()
- handleForm()
- handleSave()