Method |
Description |
|
__construct ( string $fragment = 'before' ) |
|
|
getClasses ( GridField $grid ) : array |
Gets the classes that can be created using this button, defaulting to the model class and
its subclasses. |
|
getFragment ( ) : string |
Gets the fragment name this button is rendered into. |
|
getHTMLFragments ( $grid ) |
{@inheritDoc} |
|
getTitle ( ) : string |
Gets the button title text. |
|
getURLHandlers ( $grid ) |
{@inheritDoc} |
|
handleAdd ( GridField $grid, SS_HTTPRequest $request ) : GridFieldAddNewMultiClassHandler |
Handles adding a new instance of a selected class. |
|
setClasses ( array $classes, $default = null ) : GridFieldAddNewMultiClass |
Sets the classes that can be created using this button. |
|
setDefaultClass ( string $default ) : GridFieldAddNewMultiClass |
Sets the default class that is selected automatically. |
|
setFragment ( string $fragment ) : GridFieldAddNewMultiClass |
Sets the fragment name this button is rendered into. |
|
setItemRequestClass ( $class ) |
|
|
setTitle ( string $title ) : GridFieldAddNewMultiClass |
Sets the button title text. |
|