LeKoala\CmsActions\GridFieldTableButton
Provide a simple way to declare buttons that affects a whole GridField
This implements a URL Handler that can be called by the button
Synopsis
class GridFieldTableButton
implements
GridField_HTMLProvider,GridField_ActionProvider,GridField_URLHandler
{
- // members
- protected $targetFragment;
- protected boolean $noAjax = true;
- protected boolean $allowEmptyResponse = false;
- protected $buttonLabel;
- protected $fontIcon;
- protected $parentID;
- protected $confirm;
- protected $prompt;
- protected $promptDefault;
- protected array $attributes = ;
- // methods
- public void __construct()
- public void getActionName()
- public void getButtonLabel()
- public void getHTMLFragments()
- public $this setAttribute()
- public string getAttribute()
- public void getActions()
- public void handleAction()
- public void getURLHandlers()
- public abstract void handle()
- public string getFontIcon()
- public $this setFontIcon()
- public int getParentID()
- public $this setParentID()
- public string getConfirm()
- public $this setConfirm()
- public string getPrompt()
- public $this setPrompt()
- public string getPromptDefault()
- public $this setPromptDefault()
- // Inherited methods from ProgressiveAction
- public mixed getProgressive()
- public $this setProgressive()
Hierarchy
Uses
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_ActionProvider
- SilverStripe\Forms\GridField\GridField_URLHandler
Tasks
Line | Task |
---|---|
118 | replace prompt and confirm with inline js |
Members
protected
- $allowEmptyResponse — boolean
- $attributes — array
- $confirm — string
- $fontIcon — string
- $noAjax — boolean
- $parentID — string
- $progressive
- $prompt — string
- $promptDefault — string
- $targetFragment
—
string
Fragment to write the button to
Methods
public
- __construct()
- getActionName()
- getActions()
- getAttribute()
- getButtonLabel()
- getConfirm() — Get the value of confirm
- getFontIcon() — Get the value of fontIcon
- getHTMLFragments() — Place the export button in a <p> tag below the field
- getParentID() — Get the parent record id
- getPrompt() — Get the value of prompt
- getPromptDefault() — Get the value of promptDefault
- getURLHandlers() — it is also a URL
- handle()
- handleAction()
- setAttribute()
- setConfirm() — Set the value of confirm
- setFontIcon() — Set the value of fontIcon
- setParentID() — Set the parent record id
- setPrompt() — Set the value of prompt
- setPromptDefault() — Set the value of promptDefault
Inherited from LeKoala\CmsActions\ProgressiveAction
public
- getProgressive() — Get the value of progressive
- setProgressive() — Set the value of progressive