import Ember from 'ember';

export default Ember.Component.extend({
  tagName: 'tr'
});

import Ember from 'ember';

export default Ember.Component.extend({
  tagName: 'tr',
  attributeBindings: ['tabindex'],

  click () {
    this.sendAction('action', this.get('expenseId'));
  },

  keyDown (event) {
    if (event.which === 13) {
      this.sendAction('action', this.get('expenseId'));
    }
  }
});

Send action with id to parent when table cell clicked
feat: Send action with id to parent when table cell clicked

