Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton
Builds on the {@link GridFieldEditableColumns} component to allow creating new records.
Synopsis
class GridFieldAddNewInlineButton
implements
GridField_HTMLProvider,GridField_SaveHandler
{
- // constants
- const POST_KEY = 'GridFieldAddNewInlineButton';
- // methods
- public void __construct()
- public string getFragment()
- public GridFieldAddNewInlineButton setFragment()
- public string getTitle()
- public GridFieldAddNewInlineButton setTitle()
- public void getHTMLFragments()
- private void getRowTemplate()
- public void handleSave()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_SaveHandler
Constants
Name | Value |
---|---|
POST_KEY | 'GridFieldAddNewInlineButton' |
Members
private
- $fragment
- $title
Methods
private
public
- __construct()
- getFragment() — Gets the fragment name this button is rendered into.
- getHTMLFragments()
- getTitle() — Gets the button title text.
- handleSave()
- setFragment() — Sets the fragment name this button is rendered into.
- setTitle() — Sets the button title text.