class GridFieldFilterHeader implements GridField_HTMLProvider, GridField_DataManipulator, GridField_ActionProvider

GridFieldFilterHeader alters the {@link GridField} with some filtering fields in the header of each column.

Methods

setThrowExceptionOnBadDataType($throwExceptionOnBadDataType)

Determine what happens when this component is used with a list that isn't {@link SS_Filterable}.

getThrowExceptionOnBadDataType()

See {@link setThrowExceptionOnBadDataType()}

Array
getActions(GridField $gridField)

No description

handleAction(GridField $gridField, String $actionName, Array $arguments, Array $data)

Handle an action on the given {@link GridField}.

getManipulatedData(GridField $gridField, SS_List $dataList)

No description

array
getHTMLFragments($gridField)

No description

Details

at line 27
setThrowExceptionOnBadDataType($throwExceptionOnBadDataType)

Determine what happens when this component is used with a list that isn't {@link SS_Filterable}.

  • true: An exception is thrown
    • false: This component will be ignored - it won't make any changes to the GridField.

By default, this is set to true so that it's clearer what's happening, but the predefined {@link GridFieldConfig} subclasses set this to false for flexibility.

Parameters

$throwExceptionOnBadDataType

at line 34
getThrowExceptionOnBadDataType()

See {@link setThrowExceptionOnBadDataType()}

at line 59
Array getActions(GridField $gridField)

Parameters

GridField $gridField

Return Value

Array with action identifier strings.

at line 65
handleAction(GridField $gridField, String $actionName, Array $arguments, Array $data)

Handle an action on the given {@link GridField}.

Calls ALL components for every action handled, so the component needs to ensure it only accepts actions it is actually supposed to handle.

Parameters

GridField $gridField
String $actionName Action identifier, see {@link getActions()}.
Array $arguments Arguments relevant for this
Array $data All form data

at line 87
DataList getManipulatedData(GridField $gridField, SS_List $dataList)

Parameters

GridField $gridField
SS_List $dataList

Return Value

DataList

at line 128
array getHTMLFragments($gridField)

Parameters

$gridField

Return Value

array