Milkyway\SS\GridFieldUtils\HasOneSelector
Synopsis
class HasOneSelector
implements
GridField_ColumnProvider,GridField_SaveHandler,GridField_HTMLProvider
{
- // members
- public $resetButtonTitle;
- public string $columnTitle = 'Select';
- public $targetFragment;
- protected $relation;
- // methods
- public void __construct()
- public void augmentColumns()
- public array getColumnsHandled()
- public string getColumnContent()
- public array getColumnAttributes()
- public array getColumnMetadata()
- public void getHTMLFragments()
- public void handleSave()
Hierarchy
Implements
- GridField_ColumnProvider
- GridField_SaveHandler
- GridField_HTMLProvider
Members
protected
- $relation
public
- $columnTitle
- $resetButtonTitle
- $targetFragment
Methods
public
- __construct()
- 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()
- handleSave()