class GridFieldPageCount implements GridField_HTMLProvider (View source)

GridFieldPage displays a simple current page count summary.

E.g. "View 1 - 15 of 32"

Depends on GridFieldPaginator} being added to the {@link GridField.

Properties

protected string $targetFragment
protected string $itemClass

Which template to use for rendering

Methods

public
__construct(string $targetFragment = 'before')

No description

protected
getPaginator(GridField $gridField)

Retrieves an instance of a GridFieldPaginator attached to the same control

public
array
getHTMLFragments($gridField)

No description

Details

__construct(string $targetFragment = 'before')

No description

Parameters

string $targetFragment

The fragment indicating the placement of this page count

protected GridFieldPaginator getPaginator(GridField $gridField)

Retrieves an instance of a GridFieldPaginator attached to the same control

Parameters

GridField $gridField

The parent gridfield

Return Value

GridFieldPaginator

The attached GridFieldPaginator, if found.

Exceptions

LogicException

array getHTMLFragments($gridField)

No description

Parameters

$gridField

Return Value

array