comparison src/app/query-mode.ts @ 55:308c96f734c8 ng2-table

first steps to importing state from URL.
author casties
date Mon, 27 Mar 2017 14:17:55 +0200
parents b65a031c4967
children
comparison
equal deleted inserted replaced
54:4341c1b4e3ae 55:308c96f734c8
1 export interface QueryMode { 1 export interface QueryMode {
2 id: string; 2 id: string;
3 label: string; 3 label: string;
4 }
5
6 export function getQueryModeById(id: string) {
7 return QUERY_MODES.find((elem) => elem.id === id);
4 } 8 }
5 9
6 export var QUERY_MODES: QueryMode[] = [ 10 export var QUERY_MODES: QueryMode[] = [
7 {id: 'type_is', label:'Object type is'}, 11 {id: 'type_is', label:'Object type is'},
8 {id: 'att_contains', label: 'Attribute (contains)'}, 12 {id: 'att_contains', label: 'Attribute (contains)'},