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}.
Traits
Config options
default_items_per_page | int | Specifies default items per page |
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .
Gets the uninherited value for the given config option
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
Details
in Configurable at line 20
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .
....).
in Configurable at line 32
mixed
stat(string $name)
deprecated
deprecated 5.0 Use ->config()->get() instead
Get inherited config value
in Configurable at line 44
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
in Configurable at line 57
$this
set_stat(string $name, mixed $value)
deprecated
deprecated 5.0 Use ->config()->set() instead
Update the config value for a given property
at line 43
__construct(int $itemsPerPage = null)
at line 61
$this
setThrowExceptionOnBadDataType(bool $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 72
bool
getThrowExceptionOnBadDataType()
See {@link setThrowExceptionOnBadDataType()}
at line 103
array
getActions(GridField $gridField)
at line 120
handleAction(GridField $gridField, string $actionName, array $arguments, array $data)
at line 203
ArrayData
getTemplateParameters(GridField $gridField)
Determines arguments to be passed to the template for building this field