LeKoala\CmsActions\CustomLink
Custom links to include in getCMSActions
Link handlers are declared on the DataObject itself
Synopsis
class CustomLink
extends LiteralField
{
- // members
- protected boolean $noAjax = false;
- // methods
- public void __construct()
- public void Type()
- public void FieldHolder()
- public $this setHidden()
- public boolean getNoAjax()
- public $this setNoAjax()
- // Inherited methods from CustomButton
- public string getTitle()
- public $this setTitle()
- public bool getDropUp()
- public $this setDropUp()
- public void setButtonType()
- protected string getButtonTitle()
- public string getButtonIcon()
- public $this setButtonIcon()
- public void getConfirmation()
- public $this setConfirmation()
- // Inherited methods from DefaultLink
- public string getModelLink()
- public string getControllerLink()
- public void getLink()
- public $this setLink()
- public void getNewWindow()
- public $this setNewWindow()
- // Inherited methods from ProgressiveAction
- public mixed getProgressive()
- public $this setProgressive()
Hierarchy
Extends
- SilverStripe\Forms\LiteralField
Uses
Members
protected
- $confirmation
—
string
The confirmation message - $dropUp
—
LeKoala\CmsActions\bool
Whether to place the button in a dot-menu - $link — string
- $newWindow — boolean
- $noAjax — boolean
- $progressive
Methods
public
- __construct()
- FieldHolder()
- Type()
- getNoAjax() — Get the value of noAjax
- setHidden() — Hide this action as it needs to exist to be forwarded to the model but you might not want to display it in the action bar
- setNoAjax() — Set the value of noAjax
Inherited from LeKoala\CmsActions\CustomButton
protected
- getButtonTitle() — Get the title with icon if set
public
- getButtonIcon() — Get an icon for this button
- getConfirmation() — Get the value of confirmation
- getDropUp() — Get the dropUp value Called by ActionsGridFieldItemRequest to determine placement
- getTitle() — Get the title of the link Called by ActionsGridFieldItemRequest to build default message
- setButtonIcon() — Set an icon for this button
- setButtonType()
- setConfirmation() — Set the value of confirmation
- setDropUp() — Set the value of dropUp
- setTitle() — Set the value of title
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
Inherited from LeKoala\CmsActions\ProgressiveAction
public
- getProgressive() — Get the value of progressive
- setProgressive() — Set the value of progressive