Mercurial > hg > ng2-query-ismi
comparison app/query.service.ts @ 24:f6f4177d0a81
use ng2-table for results.
author | casties |
---|---|
date | Tue, 26 Jan 2016 16:54:38 +0100 |
parents | 9343e43a17d1 |
children | 0795207f3b90 |
comparison
equal
deleted
inserted
replaced
23:f7a7014abf5c | 24:f6f4177d0a81 |
---|---|
278 * Return nice column objects | 278 * Return nice column objects |
279 */ | 279 */ |
280 getColumns(attributes: string[]) { | 280 getColumns(attributes: string[]) { |
281 var cols = []; | 281 var cols = []; |
282 if (attributes.indexOf('ismi_id') > -1) { | 282 if (attributes.indexOf('ismi_id') > -1) { |
283 cols.push({'name': 'ismi_id', 'label': 'ISMI ID'}); | 283 cols.push({'name': 'ismi_id', 'title': 'ISMI ID'}); |
284 } | 284 } |
285 if (attributes.indexOf('label') > -1) { | 285 if (attributes.indexOf('label') > -1) { |
286 cols.push({'name': 'label', 'label': 'Label'}); | 286 cols.push({'name': 'label', 'title': 'Label'}); |
287 } | 287 } |
288 attributes.forEach((att) => { | 288 attributes.forEach((att) => { |
289 if (att != 'ismi_id' && att != 'label' && att != 'type' && att[0] != '_') { | 289 if (att != 'ismi_id' && att != 'label' && att != 'type' && att[0] != '_') { |
290 cols.push({'name': att, 'label': att}); | 290 cols.push({'name': att, 'title': att}); |
291 } | 291 } |
292 }); | 292 }); |
293 | 293 |
294 return cols; | 294 return cols; |
295 } | 295 } |