allow headers on transaction lists
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Thu, 18 Sep 2014 20:31:28 +0000 (16:31 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Thu, 18 Sep 2014 20:31:28 +0000 (16:31 -0400)
lib/enyo-x/source/views/transaction_list_container.js

index f1b9ac3..aeab330 100644 (file)
@@ -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;