{"action":"opened","issue":{"url":"https://api.github.com/repos/jmurphyau/ember-get-helper/issues/10","labels_url":"https://api.github.com/repos/jmurphyau/ember-get-helper/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jmurphyau/ember-get-helper/issues/10/comments","events_url":"https://api.github.com/repos/jmurphyau/ember-get-helper/issues/10/events","html_url":"https://github.com/jmurphyau/ember-get-helper/issues/10","id":89772037,"number":10,"title":"[Proposal] get function","user":{"login":"BenjaminHorn","id":5570232,"avatar_url":"https://avatars.githubusercontent.com/u/5570232?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminHorn","html_url":"https://github.com/BenjaminHorn","followers_url":"https://api.github.com/users/BenjaminHorn/followers","following_url":"https://api.github.com/users/BenjaminHorn/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminHorn/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminHorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminHorn/subscriptions","organizations_url":"https://api.github.com/users/BenjaminHorn/orgs","repos_url":"https://api.github.com/users/BenjaminHorn/repos","events_url":"https://api.github.com/users/BenjaminHorn/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminHorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-20T13:42:15Z","updated_at":"2015-06-20T13:42:15Z","closed_at":null,"body":"I don't know if it possible, but it would be great to have a functionality like this.\r\n\r\n```javascript\r\n// colum definition\r\ncolumns: [\r\n  {name: 'Name', property: 'name'},,\r\n  {name: 'Salary of an employee', property: 'name', format: function(value){\r\n    return parseFloat(value).toFixed(2);\r\n  }}\r\n]\r\n\r\n// in a table component \r\n  {{#each model as |row|}}\r\n  <tr>\r\n    {{#each columns as |column|}}\r\n      {{#if column.format}}\r\n        <td>{{get column.format( row column.component) }}</td>\r\n      {{else}}\r\n        <td>{{get row column.property}}</td>\r\n      {{/if}}\r\n    {{/each}}\r\n  </tr>\r\n  {{/each}}\r\n```\r\n\r\nAlternative syntax:\r\n\r\n```javascript\r\n  {{get column.format( row[column.component])}}\r\n  ...\r\n```"}}