\EditableBlockRow
Synopsis
class EditableBlockRow
extends RequestHandler
implements
GridField_HTMLProvider,GridField_SaveHandler,GridField_URLHandler,GridField_ColumnProvider
{
- // members
- public string $column = '_OpenRowForEditing';
- public string $urlSegment = 'editableRow';
- public string $setWorkingParentOnRecordTo = 'Parent';
- public boolean $disableToggleStateSave = false;
- public boolean $cacheToggleStateSave = false;
- public boolean $openNewTogglesOnCreate = true;
- protected $permissionCallback;
- protected $itemEditFormCallback;
- protected $fields;
- protected $template;
- protected $validator;
- private $workingGrid;
- private static array $allowed_actions = ;
- private array $canView = ;
- // methods
- public void __construct()
- public FieldList|callable|array getFields()
- public EditableBlockRow setFields()
- public Validator|callable|array getValidator()
- public EditableBlockRow setValidator()
- public callable getPermissionCallback()
- public EditableBlockRow setPermissionCallback()
- public callable getItemEditFormCallback()
- public EditableBlockRow setItemEditFormCallback()
- public void getURLHandlers()
- public void augmentColumns()
- public array getColumnsHandled()
- public string getColumnContent()
- public array getColumnAttributes()
- public array getColumnMetadata()
- public void getHTMLFragments()
- public void handleSave()
- public void getForm()
- protected void getFieldList()
- protected void getValidatorForForm()
- public void handleForm()
- public void loadItem()
- protected void getRecordFromRequest()
- public void Link()
- protected void renameFieldsInCompositeField()
- protected void checkPermission()
- protected void getComponentName()
Hierarchy
Extends
- RequestHandler
Implements
- GridField_HTMLProvider
- GridField_SaveHandler
- GridField_URLHandler
- GridField_ColumnProvider
Members
private
- $allowed_actions
- $canView
- $workingGrid
protected
- $fields
- $itemEditFormCallback
- $permissionCallback
- $template
- $validator
public
- $cacheToggleStateSave
- $column
- $disableToggleStateSave
- $openNewTogglesOnCreate
- $setWorkingParentOnRecordTo
- $urlSegment
Methods
protected
- checkPermission()
- getComponentName()
- getFieldList()
- getRecordFromRequest()
- getValidatorForForm()
- renameFieldsInCompositeField()
public
- __construct()
- Link()
- augmentColumns() — Modify the list of columns displayed in the table.
- getColumnAttributes() — Attributes for the element containing the content returned by {@link getColumnContent()}.
- getColumnContent() — HTML for the column, content of the <td> element.
- getColumnMetadata() — Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.
- getColumnsHandled() — Names of all columns which are affected by this component.
- getFields() — Gets the fields for this class
- getForm()
- getHTMLFragments()
- getItemEditFormCallback() — Get the callback for changes on the edit form after constructing it
- getPermissionCallback() — Get the permission callback for this column
- getURLHandlers()
- getValidator() — Gets the validator
- handleForm()
- handleSave()
- loadItem()
- setFields() — Sets the fields that will be displayed in this component
- setItemEditFormCallback() — Make changes on the edit form after constructing it.
- setPermissionCallback() — Sets the permission callback for this column
- setValidator() — Sets the validator that will be displayed in this component