annotate app/result-column.ts @ 39:7578b21cdf2e

make relation types configurable. relations can have custom labels for incoming or outgoing direction.
author casties
date Sun, 14 Feb 2016 19:40:07 +0100
parents 4926885f8a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
1 export class ResultColumn {
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
2 public name: string;
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
3 public title: string;
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
4 public sort: any;
31
4926885f8a99 selectable result columns. nicer cypher query output.
casties
parents: 25
diff changeset
5 public show: boolean;
25
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
6
31
4926885f8a99 selectable result columns. nicer cypher query output.
casties
parents: 25
diff changeset
7 constructor (name: string, title: string, sort='', show=false) {
25
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
8 this.name = name;
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
9 this.title = title;
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
10 this.sort = sort;
31
4926885f8a99 selectable result columns. nicer cypher query output.
casties
parents: 25
diff changeset
11 this.show = show;
25
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
12 }
0795207f3b90 ng2-table now with pager, sorting and styling.
casties
parents:
diff changeset
13 }