GridFieldDetailForm
class GridFieldDetailForm implements GridField_URLHandler (View source)
Provides view and edit forms at GridField-specific URLs.
These can be placed into pop-ups by an appropriate front-end.
Usually added to a {@link GridField} alongside of a {@link GridFieldEditButton} which takes care of linking the individual rows to their edit view.
The URLs provided will be off the following form:
-
/field/ /item/ -
/field/ /item/ /edit
Methods
Return URLs to be handled by this grid field, in an array the same form as $url_handlers.
Create a popup component. The two arguments will specify how the popup form's HTML and behaviour is created. The given controller will be customised, putting the edit form into the template with the given name.
No description
No description
No description
No description
No description
No description
No description
No description
Details
getURLHandlers($gridField)
Return URLs to be handled by this grid field, in an array the same form as $url_handlers.
Handler methods will be called on the component, rather than the {@link GridField}.
__construct(string $name = 'DetailForm')
Create a popup component. The two arguments will specify how the popup form's HTML and behaviour is created. The given controller will be customised, putting the edit form into the template with the given name.
The arguments are experimental API's to support partial content to be passed back to whatever controller who wants to display the getCMSFields