LeKoala\CmsActions\CustomButton
Common button functionnality that is shared between CustomAction and CustomLink
Synopsis
trait CustomButton
{
- // members
- private static array $default_classes = ;
- protected bool $dropUp = false;
- protected $buttonIcon;
- protected $confirmation;
- // methods
- 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()
Hierarchy
Members
private
- $default_classes
—
array
Default classes applied in constructor
protected
- $confirmation
—
string
The confirmation message - $dropUp
—
LeKoala\CmsActions\bool
Whether to place the button in a dot-menu
Methods
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