Milkyway\SS\GridFieldUtils\SimpleModal\DetailForm
Synopsis
class DetailForm
extends GridFieldDetailForm
{
- // members
- public boolean $allowUndo = true;
- public string $setWorkingParentOnRecordTo = '';
- public array $dimensions = ;
- public string $uriSegment = 'simple-item';
- protected $itemHandlerFactory;
- protected $saveHandler;
- protected $undoSaveNewHandler;
- protected $fields;
- protected $validator;
- // Inherited members from GridFieldDetailForm
- public string $uriSegment;
- // methods
- public void __construct()
- public DetailForm setItemHandlerFactory()
- public callable|null getItemHandlerFactory()
- public DetailForm setSaveHandler()
- public callable|null getSaveHandler()
- public DetailForm setUndoSaveNewHandler()
- public callable|null getUndoSaveNewHandler()
- public DetailForm allowUndo()
- public bool canUndo()
- public void handleItem()
- // Inherited methods from GridFieldDetailForm
- public void __construct()
- public void getURLHandlers()
- public void setUriSegment()
- public void getUriSegment()
Hierarchy
Members
protected
- $fields
- $itemHandlerFactory
- $saveHandler
- $undoSaveNewHandler
- $validator
public
- $allowUndo
- $dimensions
- $setWorkingParentOnRecordTo
- $uriSegment
- $uriSegment
Methods
public
- __construct()
- allowUndo() — Enable undo of adding an item
- canUndo()
- getItemHandlerFactory()
- getSaveHandler()
- getUndoSaveNewHandler()
- handleItem()
- setItemHandlerFactory() — Set a item handler factory, which can create a custom RequestHandler to be used for viewing the modal
- setSaveHandler() — Sets a custom handler for when the add action is called
- setUndoSaveNewHandler() — Sets a custom handler for undoing the save action (only works for new records)