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

Commit

Permalink
Merge pull request #21 from marmelab/pinned
Browse files Browse the repository at this point in the history
[RFR] Allow a field to be pinned (used in new filters)
  • Loading branch information
jpetitcolas committed Jun 25, 2015
2 parents 0298ce6 + 0fbf67e commit 787d91d
Showing 1 changed file with 7 additions and 0 deletions.
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._defaultValue = null;
this._editable = true;
this._detailLinkRoute = 'edit';
this._pinned = false;
this.dashboard = true;
this.list = true;
}
Expand Down Expand Up @@ -163,6 +164,12 @@ class Field {
this._detailLinkRoute = route;
return this;
}

pinned(pinned) {
if (!arguments.length) return this._pinned;
this._pinned = pinned;
return this;
}
}

export default Field;

0 comments on commit 787d91d

Please sign in to comment.