mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Adding the ability to set the sort column title by setting $field_labels of a DataObject.
This commit is contained in:
parent
1d4f24de36
commit
d463ba25c1
@ -204,6 +204,10 @@ class GridFieldOrderableRows extends RequestHandler implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getColumnMetadata($grid, $col) {
|
public function getColumnMetadata($grid, $col) {
|
||||||
|
if ($fieldLabels = singleton($grid->list->dataClass)->fieldLabels()) {
|
||||||
|
return array('title' => isset($fieldLabels['Reorder']) ? $fieldLabels['Reorder'] : '');
|
||||||
|
}
|
||||||
|
|
||||||
return array('title' => '');
|
return array('title' => '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,6 +129,7 @@
|
|||||||
|
|
||||||
.ss-gridfield-orderable thead tr th.col-Reorder span {
|
.ss-gridfield-orderable thead tr th.col-Reorder span {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ss-gridfield-orderable .col-reorder {
|
.ss-gridfield-orderable .col-reorder {
|
||||||
|
Loading…
Reference in New Issue
Block a user