mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Merge pull request #153 from 3Dgoo/feature/sort-column-label
Sort column field label
This commit is contained in:
commit
ef51d59b49
@ -204,6 +204,10 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
}
|
||||
|
||||
public function getColumnMetadata($grid, $col) {
|
||||
if ($fieldLabels = singleton($grid->list->dataClass)->fieldLabels()) {
|
||||
return array('title' => isset($fieldLabels['Reorder']) ? $fieldLabels['Reorder'] : '');
|
||||
}
|
||||
|
||||
return array('title' => '');
|
||||
}
|
||||
|
||||
|
@ -129,6 +129,7 @@
|
||||
|
||||
.ss-gridfield-orderable thead tr th.col-Reorder span {
|
||||
padding: 0 !important;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.ss-gridfield-orderable .col-reorder {
|
||||
|
Loading…
x
Reference in New Issue
Block a user