UncleCheese\BetterButtons\Actions\BetterButtonCancelAction
Defines a button that cancels out of the form
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class BetterButtonCancelAction
extends BetterButtonAction
{
- // Inherited members from BetterButtonAction
- protected Form $form;
- protected $buttonText;
- protected $buttonName;
- protected GridFieldDetailForm_ItemRequest $gridFieldRequest;
- // methods
- public void __construct()
- public string getButtonLink()
- public string getButtonHTML()
- // Inherited methods from BetterButtonAction
- public void __construct()
- public void bindGridField()
- public string getButtonName()
- public string getButtonLink()
- public bool shouldDisplay()
- public string getButtonHTML()
- public string getButtonText()
- public BetterButtonAction setConfirmation()
- public SSViewer FieldHolder()
Hierarchy
Members
protected
- $form
—
SilverStripe\Forms\Form
The form that this action is associated with - $gridFieldRequest
—
SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest
The request that is associated with the gridfield
Methods
public
- __construct() — Builds the button
- getButtonHTML() — Gets the HTML that represents the button
- getButtonLink() — Gets the link for the button
Inherited from UncleCheese\BetterButtons\Actions\BetterButtonAction
public
- FieldHolder() — Generates the button. Updates the literal field with the correct HTML based on any post-contruct updates
- bindGridField() — Bind the button to the GridField request
- getButtonHTML() — Gets the HTML representing the button
- getButtonLink() — A noop that gets the link for the button
- getButtonName() — Get the name of the button. Arbitrary.
- getButtonText() — Gets the text for the button
- setConfirmation() — Sets the confirm text
- shouldDisplay() — Determines if the button should display