diff --git a/doc/reference/Field.md b/doc/reference/Field.md index e1ed5a48..dce2e92d 100644 --- a/doc/reference/Field.md +++ b/doc/reference/Field.md @@ -173,6 +173,10 @@ Define the default value of the field in the creation form. * `pinned(boolean)` Whether the field should always appear. Used in filters (see listView Settings). Default to false. +* disableSort = boolean +Set this property to true to prevent the user from sorting on this field in the list view. +(Note this is a boolean property, not a setter function taking a boolean param). + ## `wysiwyg` Field Type * `stripTags(boolean)` diff --git a/src/javascripts/ng-admin/Crud/list/maDatagrid.js b/src/javascripts/ng-admin/Crud/list/maDatagrid.js index 6605a796..57f502be 100644 --- a/src/javascripts/ng-admin/Crud/list/maDatagrid.js +++ b/src/javascripts/ng-admin/Crud/list/maDatagrid.js @@ -26,11 +26,14 @@ export default function maDatagrid() { - + {{ field.label() }} + + {{ field.label() }} + Actions