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

[RFR] Allow a field to be pinned (used in new filters) #21

Merged
merged 1 commit into from
Jun 25, 2015
Merged
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._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;