diff app/result-type.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
line wrap: on
line diff
--- a/app/result-type.ts	Sun Feb 14 19:38:36 2016 +0100
+++ b/app/result-type.ts	Sun Feb 14 19:40:07 2016 +0100
@@ -13,7 +13,10 @@
         this.deniedAttributes = deniedAttributes;
     }
     
-    getColumns(attributes: string[], allAttributes=true) {
+    /**
+     * Return columns for the given list of attributes.
+     */
+    getColumns(attributes: string[], allAttributes=true): ResultColumn[] {
         let atts = attributes.slice();
         let cols = [];
         // allowed attributes