diff --git a/lib/Field/Field.js b/lib/Field/Field.js index a1db9d0..2745866 100644 --- a/lib/Field/Field.js +++ b/lib/Field/Field.js @@ -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; @@ -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; diff --git a/package.json b/package.json index af2f947..4c29ca3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "admin-config", - "version": "0.11.0", + "version": "0.11.1", "private": false, "repository": { "type": "git",