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 GridField alongside of a 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  
Properties
| protected | string | $template | ||
| protected | string | $name | ||
| protected | Validator | $validator | ||
| protected | FieldList | $fields | ||
| protected | string | $itemRequestClass | ||
| protected | function | $itemEditFormCallback | 
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.
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 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
        
                            GridFieldDetailForm_ItemRequest
    handleItem(GridField $gridField, SS_HTTPRequest $request)
        
    
    No description
        
                            
    setTemplate($template)
        
    
    No description
        
                            string
    getTemplate()
        
    
    No description
        
                            
    setName($name)
        
    
    No description
        
                            string
    getName()
        
    
    No description
        
                            
    setValidator(Validator $validator)
        
    
    No description
        
                            Validator
    getValidator()
        
    
    No description
        
                            
    setFields(FieldList $fields)
        
    
    No description
        
                            FieldList
    getFields()
        
    
    No description
        
                            
    setItemRequestClass($class)
        
    
    No description
        
                            string
    getItemRequestClass()
        
    
    No description
        
                            
    setItemEditFormCallback(Closure $cb)
        
    
    No description
        
                            Closure
    getItemEditFormCallback()
        
    
    No description