github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/ui/app/components/list-table.js (about) 1 import Component from '@ember/component'; 2 import { computed } from '@ember/object'; 3 4 export default Component.extend({ 5 tagName: 'table', 6 classNames: ['table'], 7 8 source: computed(() => []), 9 10 // Plan for a future with metadata (e.g., isSelected) 11 decoratedSource: computed('source.[]', function() { 12 return this.get('source').map(row => ({ 13 model: row, 14 })); 15 }), 16 });