GridField_ColumnProvider
interface GridField_ColumnProvider implements GridFieldComponent (View source)
Add a new column to the table display body, or modify existing columns.
Used once per record/row.
Methods
Modify the list of columns displayed in the table.
HTML for the column, content of the
Attributes for the element containing the content returned by {@link getColumnContent()}.
Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.
Details
augmentColumns(GridField $gridField, array $columns)
Modify the list of columns displayed in the table.
array
getColumnsHandled(GridField $gridField)
Names of all columns which are affected by this component.
string
getColumnContent(GridField $gridField, DataObject $record, string $columnName)
HTML for the column, content of the
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Attributes for the element containing the content returned by {@link getColumnContent()}.
array
getColumnMetadata(GridField $gridField, string $columnName)
Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.