Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Add Field.sortable property for ng-admin/#372 #65

Merged
merged 1 commit into from
May 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/Field/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Field {
this._validation = { required: false, minlength : 0, maxlength : 99999 };
this._defaultValue = null;
this._editable = true;
this._sortable = true;
this._detailLinkRoute = 'edit';
this._pinned = false;
this._flattenable = true;
Expand Down Expand Up @@ -193,6 +194,12 @@ class Field {
return this;
}

sortable(sortable) {
if (!arguments.length) return this._sortable;
this._sortable = sortable;
return this;
}

detailLinkRoute(route) {
if (!arguments.length) return this._detailLinkRoute;
this._detailLinkRoute = route;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin-config",
"version": "0.11.0",
"version": "0.11.1",
"private": false,
"repository": {
"type": "git",
Expand Down