diff src/app/query-mode.ts @ 58:3b4046e0cc02 default

Merge from ng2-table branch. d7c947909ab888c013171b8c037e4f9fab30fe57
author casties
date Wed, 29 Mar 2017 17:19:12 +0200
parents 308c96f734c8
children
line wrap: on
line diff
--- a/src/app/query-mode.ts	Mon Mar 20 18:50:31 2017 +0100
+++ b/src/app/query-mode.ts	Wed Mar 29 17:19:12 2017 +0200
@@ -3,6 +3,10 @@
     label: string;
 }
 
+export function getQueryModeById(id: string) {
+    return QUERY_MODES.find((elem) => elem.id === id);
+}
+
 export var QUERY_MODES: QueryMode[] = [
     {id: 'type_is', label:'Object type is'},
     {id: 'att_contains', label: 'Attribute (contains)'},