SilverCart\Admin\Forms\GridField\GridFieldQuickAccessController
Component to add an action to display a records quick access view on mouseover.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class GridFieldQuickAccessController
implements
GridField_HTMLProvider,GridField_ColumnProvider
{
- // members
- protected string $columnName = 'QuickAccess';
- // methods
- public Array getHTMLFragments()
- public void augmentColumns()
- public array getColumnsHandled()
- public string getColumnContent()
- public array getColumnAttributes()
- public array getColumnMetadata()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_ColumnProvider
Members
protected
- $columnName
—
string
Name of the handled column
Methods
public
- augmentColumns() — Modify the list of columns displayed in the table.
- getColumnAttributes() — Attributes for the element containing the content returned by {@link getColumnContent()}.
- getColumnContent() — HTML for the column, content of the <td> element.
- getColumnMetadata() — Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.
- getColumnsHandled() — Names of all columns which are affected by this component.
- getHTMLFragments() — Returns a map where the keys are fragment names and the values are pieces of HTML to add to these fragments.