From f24b3020b91a534c64fcc7f188d2696d62fef6c8 Mon Sep 17 00:00:00 2001 From: Steve Hackbarth Date: Thu, 18 Sep 2014 16:31:28 -0400 Subject: [PATCH] allow headers on transaction lists --- lib/enyo-x/source/views/transaction_list_container.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/enyo-x/source/views/transaction_list_container.js b/lib/enyo-x/source/views/transaction_list_container.js index f1b9ac39c..aeab3307d 100644 --- a/lib/enyo-x/source/views/transaction_list_container.js +++ b/lib/enyo-x/source/views/transaction_list_container.js @@ -226,7 +226,8 @@ trailing:true, white:true, strict:false*/ */ setList: function (options) { var component, - list = options.list; + contentHeader = this.$.contentHeader, + list = options.list; component = this.createComponent({ name: "list", @@ -247,6 +248,12 @@ trailing:true, white:true, strict:false*/ memoizeEnabled: false, fit: true }); + + contentHeader.destroyClientControls(); + if (component.headerComponents) { + contentHeader.createComponents(component.headerComponents); + contentHeader.render(); + } } this.init = true; -- 2.39.2