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