Mercurial > hg > ng2-query-ismi
diff 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 |
line wrap: on
line diff
--- a/app/query.service.ts Tue Jan 26 16:28:51 2016 +0100 +++ b/app/query.service.ts Tue Jan 26 16:54:38 2016 +0100 @@ -280,14 +280,14 @@ getColumns(attributes: string[]) { var cols = []; if (attributes.indexOf('ismi_id') > -1) { - cols.push({'name': 'ismi_id', 'label': 'ISMI ID'}); + cols.push({'name': 'ismi_id', 'title': 'ISMI ID'}); } if (attributes.indexOf('label') > -1) { - cols.push({'name': 'label', 'label': 'Label'}); + cols.push({'name': 'label', 'title': 'Label'}); } attributes.forEach((att) => { if (att != 'ismi_id' && att != 'label' && att != 'type' && att[0] != '_') { - cols.push({'name': att, 'label': att}); + cols.push({'name': att, 'title': att}); } });