ccdb-web/app/components/ccdb-table.js
2017-09-13 06:20:34 -07:00

18 lines
353 B
JavaScript

import Ember from 'ember';
import Table from 'ember-light-table';
const { Component } = Ember;
export default Component.extend({
model: null,
columns: null,
table: null,
classNames: ['row'],
init() {
this._super(...arguments);
const table = new Table(this.get('columns'), this.get('model'));
this.set('table', table);
},
});