LeKoala\CmsActions\GridFieldCustomLink
Expose a custom link in a GridField at row level Action must be declared in getCMSActions to work
Synopsis
class GridFieldCustomLink
extends GridFieldRowLink
{
- // Inherited members from GridFieldRowLink
- protected array $extraClass;
- protected $name;
- protected $title;
- protected boolean $newWindow;
- // methods
- public string getLink()
- // Inherited methods from GridFieldRowLink
- public void __construct()
- public void augmentColumns()
- public array getColumnAttributes()
- public array getColumnMetadata()
- public array getColumnsHandled()
- public string getLink()
- public string getColumnContent()
- public string getExtraClass()
- public $this addExtraClass()
- public $this removeExtraClass()
- public string getName()
- public $this setName()
- public string getTitle()
- public $this setTitle()
- public void getNewWindow()
- public $this setNewWindow()
Hierarchy
Members
protected
- $extraClass
—
array
HTML classes to be added to GridField buttons - $name — string
- $newWindow — boolean
- $title — string
Methods
public
Inherited from LeKoala\CmsActions\GridFieldRowLink
public
- addExtraClass() — Add an extra HTML class
- augmentColumns() — Add a column 'Actions'
- getColumnAttributes() — Return any special attributes that will be used for FormField::create_tag()
- getColumnContent()
- getColumnMetadata() — Add the title
- getColumnsHandled() — Which columns are handled by this component
- getExtraClass() — Get the extra HTML classes to add for edit buttons
- getLink()
- getName() — Get the value of name
- getNewWindow() — Get the value of newWindow
- getTitle() — Get the value of title
- removeExtraClass() — Remove an HTML class
- setName() — Set the value of name
- setNewWindow() — Set the value of newWindow
- setTitle() — Set the value of title