UncleCheese\BetterButtons\Buttons\BetterButton_SaveAndAdd

Defines the button that save a record and redirects to creating a new one

Synopsis

class BetterButton_SaveAndAdd extends BetterButton {
  • // Inherited members from BetterButton
  • protected GridFieldDetailForm_ItemRequest $gridFieldRequest;
}

Hierarchy

Members

protected

Methods

public

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