mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ENHANCEMENT: replacing ReportAdmin report listing paginator with a new footer GridField component
This commit is contained in:
parent
73a466c927
commit
203bfc9e99
@ -192,12 +192,11 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
new GridFieldToolbarHeader(),
|
new GridFieldToolbarHeader(),
|
||||||
new GridFieldSortableHeader(),
|
new GridFieldSortableHeader(),
|
||||||
new GridFieldDataColumns(),
|
new GridFieldDataColumns(),
|
||||||
new GridFieldPaginator()
|
new GridFieldFooter()
|
||||||
);
|
);
|
||||||
$gridField = new GridField('Reports','Reports', $this->Reports(), $gridFieldConfig);
|
$gridField = new GridField('Reports','Reports', $this->Reports(), $gridFieldConfig);
|
||||||
$gridField->setDisplayFields(array(
|
$gridField->setDisplayFields(array(
|
||||||
'title' => 'Title',
|
'title' => 'Title',
|
||||||
'description' => 'Description'
|
|
||||||
));
|
));
|
||||||
$gridField->setFieldFormatting(array(
|
$gridField->setFieldFormatting(array(
|
||||||
'title' => '<a href=\"$Link\">$value</a>'
|
'title' => '<a href=\"$Link\">$value</a>'
|
||||||
|
Loading…
Reference in New Issue
Block a user