LeKoala\CmsActions\GridFieldTableLink
Provide a simple way to declare links for GridField tables
Synopsis
class GridFieldTableLink
implements
GridField_HTMLProvider
{
- // members
- protected $targetFragment;
- protected $actionName;
- protected $buttonLabel;
- protected $fontIcon;
- protected $parentID;
- protected $confirm;
- protected $prompt;
- protected $promptDefault;
- protected array $attributes = ;
- protected boolean $noAjax = false;
- // methods
- public void __construct()
- public void getActionName()
- public void getButtonLabel()
- public void getHTMLFragments()
- public $this setAttribute()
- public string getAttribute()
- public void getActions()
- 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()
- public boolean getNoAjax()
- public $this setNoAjax()
- // Inherited methods from DefaultLink
- public string getModelLink()
- public string getControllerLink()
- public void getLink()
- public $this setLink()
- public void getNewWindow()
- public $this setNewWindow()
Hierarchy
Tasks
Line | Task |
---|---|
115 | replace prompt and confirm with inline js |
Members
protected
- $actionName — string
- $attributes — array
- $confirm — string
- $fontIcon — string
- $link — string
- $newWindow — boolean
- $noAjax — boolean
- $parentID — string
- $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
- getNoAjax() — Get the value of noAjax
- getParentID() — Get the parent record id
- getPrompt() — Get the value of prompt
- getPromptDefault() — Get the value of promptDefault
- setAttribute()
- setConfirm() — Set the value of confirm
- setFontIcon() — Set the value of fontIcon
- setNoAjax() — Set the value of noAjax
- setParentID() — Set the parent record id
- setPrompt() — Set the value of prompt
- setPromptDefault() — Set the value of promptDefault
Inherited from LeKoala\CmsActions\DefaultLink
public
- getControllerLink() — Build an url for the current controller and pass along some parameters
- getLink() — Get the value of link
- getModelLink() — Build a url to call an action on current model
- getNewWindow() — Get the value of newWindow
- setLink() — Set the value of link
- setNewWindow() — Set the value of newWindow