Skip to content

Commit

Permalink
Add footer scaffolding and move width into style attr (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
offirgolan authored Sep 23, 2016
1 parent c333e3d commit a51ee3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions addon/templates/components/lt-foot.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{{#ember-wormhole to=(concat tableId '_inline_foot') renderInPlace=renderInPlace}}
<table class={{tableClassNames}}>
<tfoot class="lt-foot">
<tr class="lt-scaffolding-row">
{{#each columns as |column|}}
<td style={{html-safe (if column.width (concat 'width: ' column.width))}} class="lt-scaffolding"></td>
{{/each}}
</tr>
{{#if hasBlock}}
{{yield columns}}
{{else}}
Expand Down
4 changes: 2 additions & 2 deletions addon/templates/components/lt-head.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
the td's fail to hold their width. Creating a scaffolding will setup the table columns correctly
--}}
{{#if subColumns.length}}
<tr>
<tr class="lt-scaffolding-row">
{{#each subColumns as |column|}}
<td width={{column.width}} class="lt-scaffolding"></td>
<td style={{html-safe (if column.width (concat 'width: ' column.width))}} class="lt-scaffolding"></td>
{{/each}}
</tr>
{{/if}}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"dependencies": {
"ember-cli-babel": "^5.1.6",
"ember-cli-htmlbars": "^1.0.11",
"ember-composable-helpers": "^1.1.2",
"ember-get-config": "0.1.7",
"ember-in-viewport": "2.1.0",
"ember-scrollable": "0.3.2",
Expand Down

0 comments on commit a51ee3c

Please sign in to comment.