LeKoala\CmsActions\GridFieldRowLink
Provides a custom link for a single record
Links do not trigger actions, use GridFieldRowButton instead
Synopsis
class GridFieldRowLink
implements
GridField_ColumnProvider
{
- // members
- protected array $extraClass = ;
- protected $name;
- protected $title;
- protected boolean $newWindow = true;
- // methods
- 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
Implements
- SilverStripe\Forms\GridField\GridField_ColumnProvider
Members
protected
- $extraClass
—
array
HTML classes to be added to GridField buttons - $name — string
- $newWindow — boolean
- $title — string
Methods
public
- __construct()
- 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