ENH: Collection List (#20)

This commit is contained in:
Matthew Ryan Dillon 2017-09-10 08:23:31 -07:00 committed by GitHub
parent 77071dfa35
commit 55a1c4fca6
26 changed files with 284 additions and 3 deletions

View file

@ -0,0 +1,16 @@
import Ember from 'ember';
import Table from 'ember-light-table';
const { Component } = Ember;
export default Component.extend({
model: null,
columns: null,
table: null,
init() {
this._super(...arguments);
const table = new Table(this.get('columns'), this.get('model'));
this.set('table', table);
},
});

View file

@ -0,0 +1,15 @@
import Ember from 'ember';
const { Component } = Ember;
export default Component.extend({
columns: [
{ label: 'Project', valuePath: 'project.name', },
{ label: 'Study Location', valuePath: 'studyLocation.code', },
{ label: 'Method', valuePath: 'collectionMethod.code', },
{ label: 'Type', valuePath: 'collectionType.name', },
{ label: '# of Traps', valuePath: 'numberOfTraps', },
{ label: 'Start', valuePath: 'startDateTime', },
{ label: 'End', valuePath: 'endDateTime', },
],
});

View file

@ -0,0 +1,7 @@
import Ember from 'ember';
const { Component } = Ember;
export default Component.extend({
classNames: ['spinner'],
});