Skip to content

Commit

Permalink
- Changes paper-data-table-body component
Browse files Browse the repository at this point in the history
- Adds tagName
- Moves surrounding tag from template to the component
  • Loading branch information
n1ru4l committed May 4, 2017
1 parent 210818d commit 46a6979
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
14 changes: 10 additions & 4 deletions addon/components/paper-data-table-body.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import Ember from 'ember';
import layout from '../templates/components/paper-data-table-body';

const { Component } = Ember;
const {
Component,
String: { htmlSafe },
} = Ember;

export default Component.extend({
classNameBindings: ['md-body'],
attributeBindings: ['style'],
layout,
tagName: '',
cellspacing: "0",
cellpadding: "0",
tagName: 'tbody',
style: htmlSafe('position: relative;'),
cellspacing: '0',
cellpadding: '0',
});
10 changes: 4 additions & 6 deletions addon/templates/components/paper-data-table-body.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<tbody class="md-body" style="position: relative;">
{{yield (hash
row=(component bodyRowComponent selectable=selectable)
)
}}
</tbody>
{{yield (hash
row=(component bodyRowComponent selectable=selectable)
)
}}

0 comments on commit 46a6979

Please sign in to comment.