Merge pull request #153 from 3Dgoo/feature/sort-column-label

Sort column field label
This commit is contained in:
Marcus 2016-07-19 11:16:08 +10:00 committed by GitHub
commit ef51d59b49
2 changed files with 5 additions and 0 deletions

View File

@ -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' => '');
}

View File

@ -129,6 +129,7 @@
.ss-gridfield-orderable thead tr th.col-Reorder span {
padding: 0 !important;
margin-left: 8px;
}
.ss-gridfield-orderable .col-reorder {