18 lines
353 B
JavaScript
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);
|
|
},
|
|
});
|