GridFieldPaginator
class GridFieldPaginator implements GridField_HTMLProvider, GridField_DataManipulator, GridField_ActionProvider
GridFieldPaginator paginates the {@link GridField} list and adds controls to the bottom of the {@link GridField}.
Config options
default_items_per_page | int | Specifies default items per page |
Methods
No description
Determine what happens when this component is used with a list that isn't {@link SS_Filterable}.
See {@link setThrowExceptionOnBadDataType()}
No description
Determines arguments to be passed to the template for building this field
No description
No description
No description
Details
at line 40
__construct(int $itemsPerPage = null)
at line 54
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.
at line 61
getThrowExceptionOnBadDataType()
See {@link setThrowExceptionOnBadDataType()}
at line 86
Array
getActions(GridField $gridField)
at line 100
handleAction(GridField $gridField, String $actionName, Array $arguments, Array $data)
at line 173
ArrayData|null
getTemplateParameters(GridField $gridField)
Determines arguments to be passed to the template for building this field