From aa6307ef4367fc1aa558de10cd2bfaf499d9c0a5 Mon Sep 17 00:00:00 2001 From: Offir Golan Date: Fri, 23 Sep 2016 16:28:11 +1200 Subject: [PATCH] Add footer scaffolding and move width into style attr --- addon/templates/components/lt-foot.hbs | 5 +++++ addon/templates/components/lt-head.hbs | 4 ++-- package.json | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/addon/templates/components/lt-foot.hbs b/addon/templates/components/lt-foot.hbs index 173626e0..b0825fb5 100644 --- a/addon/templates/components/lt-foot.hbs +++ b/addon/templates/components/lt-foot.hbs @@ -1,6 +1,11 @@ {{#ember-wormhole to=(concat tableId '_inline_foot') renderInPlace=renderInPlace}} + + {{#each columns as |column|}} + + {{/each}} + {{#if hasBlock}} {{yield columns}} {{else}} diff --git a/addon/templates/components/lt-head.hbs b/addon/templates/components/lt-head.hbs index 16a7bea2..d6271ec5 100644 --- a/addon/templates/components/lt-head.hbs +++ b/addon/templates/components/lt-head.hbs @@ -9,9 +9,9 @@ the td's fail to hold their width. Creating a scaffolding will setup the table columns correctly --}} {{#if subColumns.length}} - + {{#each subColumns as |column|}} - + {{/each}} {{/if}} diff --git a/package.json b/package.json index 6a852df8..f2ddc862 100644 --- a/package.json +++ b/package.json @@ -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",