Mercurial > hg > ng2-query-ismi
view app/query-mode.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 | b47614a9d23d |
children |
line wrap: on
line source
export interface QueryMode { id: string; label: string; } export var QUERY_MODES: QueryMode[] = [ {id: 'type_is', label:'Object type is'}, {id: 'att_contains', label: 'Attribute (contains)'}, {id: 'att_contains_norm', label: 'Attribute (contains normalized)'}, {id: 'att_num_range', label: 'Attribute (number range)'}, {id: 'relation_is', label: 'Relation type is'}, {id: 'id_is', label: 'Object ID is'} ]; export var FIRST_QUERY_MODES: QueryMode[] = [ {id: 'type_is', label:'Object type is'}, {id: 'id_is', label: 'Object ID is'} ];