UncleCheese\BetterButtons\Buttons\BetterButton_SaveAndNext
Defines the button that saves a record and goes to the next one
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class BetterButton_SaveAndNext
extends BetterButton
{
- // Inherited members from BetterButton
- protected GridFieldDetailForm_ItemRequest $gridFieldRequest;
- // methods
- public void __construct()
- public boolean shouldDisplay()
- public FormAction baseTransform()
- public FormAction transformToInput()
- // Inherited methods from BetterButton
- public void bindGridField()
- public BetterButton baseTransform()
- public FormAction transformToButton()
- public FormAction transformToInput()
- public bool shouldDisplay()
- public FormAction Field()
Hierarchy
Members
protected
- $gridFieldRequest
—
SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest
The request that points to the GridFieldDetailForm
Methods
public
- __construct() — Builds the button
- baseTransform() — Disables the button if there is no next record
- shouldDisplay() — Determines if the button should display
- transformToInput() — Adds a class that helps identify this button in a group
Inherited from UncleCheese\BetterButtons\Buttons\BetterButton
public
- Field() — Render the field with the correct attributes
- baseTransform() — Performs any last-minute transformations to the button in accordance with anything the user may have done after instantiating the button
- bindGridField() — Bind to the GridField request
- shouldDisplay() — Determines if the button should display or not
- transformToButton() — Tells the form action to become a standard form submit button
- transformToInput() — Tells the form action to become a standard input tag, e.g. for usage in a button group