Skip to content

Commit

Permalink
hide left table when numFixedColumns is 0
Browse files Browse the repository at this point in the history
revert dist files

remove idea files

add dist files
  • Loading branch information
andrewfan committed Jun 26, 2014
1 parent 9de978d commit 3f0a755
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 30 deletions.
45 changes: 36 additions & 9 deletions dist/ember-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ var _ref;
Ember.TEMPLATES["body-container"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', escapeExpression=this.escapeExpression;

var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this;

data.buffer.push("<div class=\"antiscroll-box\">\n <div class=\"antiscroll-inner\">\n <div class=\"ember-table-table-scrollable-wrapper\">\n ");
function program1(depth0,data) {

var buffer = '';
data.buffer.push("\n ");
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Ember.Table.LazyTableBlock", {hash:{
'classNames': ("ember-table-left-table-block"),
'contentBinding': ("controller.bodyContent"),
Expand All @@ -28,6 +30,13 @@ helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
'startIndexBinding': ("controller._startIndex")
},hashTypes:{'classNames': "STRING",'contentBinding': "STRING",'columnsBinding': "STRING",'widthBinding': "STRING",'numItemsShowingBinding': "STRING",'scrollTopBinding': "STRING",'startIndexBinding': "STRING"},hashContexts:{'classNames': depth0,'contentBinding': depth0,'columnsBinding': depth0,'widthBinding': depth0,'numItemsShowingBinding': depth0,'scrollTopBinding': depth0,'startIndexBinding': depth0},contexts:[depth0],types:["ID"],data:data})));
data.buffer.push("\n ");
return buffer;
}

data.buffer.push("<div class=\"antiscroll-box\">\n <div class=\"antiscroll-inner\">\n <div class=\"ember-table-table-scrollable-wrapper\">\n ");
stack1 = helpers['if'].call(depth0, "controller.numFixedColumns", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n ");
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Ember.Table.LazyTableBlock", {hash:{
'classNames': ("ember-table-right-table-block"),
'contentBinding': ("controller.bodyContent"),
Expand Down Expand Up @@ -85,10 +94,12 @@ function program3(depth0,data) {
Ember.TEMPLATES["footer-container"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', escapeExpression=this.escapeExpression;

var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this;

data.buffer.push("<div class=\"ember-table-table-fixed-wrapper\">\n ");
function program1(depth0,data) {

var buffer = '';
data.buffer.push("\n ");
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Ember.Table.TableBlock", {hash:{
'classNames': ("ember-table-left-table-block"),
'contentBinding': ("controller.footerContent"),
Expand All @@ -97,6 +108,13 @@ helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
'heightBinding': ("controller.footerHeight")
},hashTypes:{'classNames': "STRING",'contentBinding': "STRING",'columnsBinding': "STRING",'widthBinding': "STRING",'heightBinding': "STRING"},hashContexts:{'classNames': depth0,'contentBinding': depth0,'columnsBinding': depth0,'widthBinding': depth0,'heightBinding': depth0},contexts:[depth0],types:["ID"],data:data})));
data.buffer.push("\n ");
return buffer;
}

data.buffer.push("<div class=\"ember-table-table-fixed-wrapper\">\n ");
stack1 = helpers['if'].call(depth0, "controller.numFixedColumns", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n ");
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Ember.Table.TableBlock", {hash:{
'classNames': ("ember-table-right-table-block"),
'contentBinding': ("controller.footerContent"),
Expand Down Expand Up @@ -129,17 +147,26 @@ helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
Ember.TEMPLATES["header-container"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', escapeExpression=this.escapeExpression;

var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this;

data.buffer.push("<div class=\"ember-table-table-fixed-wrapper\">\n ");
function program1(depth0,data) {

var buffer = '';
data.buffer.push("\n ");
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Ember.Table.HeaderBlock", {hash:{
'classNames': ("ember-table-left-table-block"),
'columnsBinding': ("controller.fixedColumns"),
'widthBinding': ("controller._fixedBlockWidth"),
'heightBinding': ("controller.headerHeight")
},hashTypes:{'classNames': "STRING",'columnsBinding': "STRING",'widthBinding': "STRING",'heightBinding': "STRING"},hashContexts:{'classNames': depth0,'columnsBinding': depth0,'widthBinding': depth0,'heightBinding': depth0},contexts:[depth0],types:["ID"],data:data})));
data.buffer.push("\n ");
return buffer;
}

data.buffer.push("<div class=\"ember-table-table-fixed-wrapper\">\n ");
stack1 = helpers['if'].call(depth0, "controller.numFixedColumns", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n ");
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Ember.Table.HeaderBlock", {hash:{
'classNames': ("ember-table-right-table-block"),
'columnsBinding': ("controller.tableColumns"),
Expand Down
4 changes: 2 additions & 2 deletions dist/ember-table.min.js

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions src/templates/body-container.hbs
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<div class="antiscroll-box">
<div class="antiscroll-inner">
<div class="ember-table-table-scrollable-wrapper">
{{view Ember.Table.LazyTableBlock classNames="ember-table-left-table-block"
contentBinding="controller.bodyContent"
columnsBinding="controller.fixedColumns"
widthBinding="controller._fixedBlockWidth"
numItemsShowingBinding="controller._numItemsShowing"
scrollTopBinding="controller._scrollTop"
startIndexBinding="controller._startIndex"
}}
{{#if controller.numFixedColumns}}
{{view Ember.Table.LazyTableBlock classNames="ember-table-left-table-block"
contentBinding="controller.bodyContent"
columnsBinding="controller.fixedColumns"
widthBinding="controller._fixedBlockWidth"
numItemsShowingBinding="controller._numItemsShowing"
scrollTopBinding="controller._scrollTop"
startIndexBinding="controller._startIndex"
}}
{{/if}}
{{view Ember.Table.LazyTableBlock classNames="ember-table-right-table-block"
contentBinding="controller.bodyContent"
columnsBinding="controller.tableColumns"
Expand Down
14 changes: 8 additions & 6 deletions src/templates/footer-container.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div class="ember-table-table-fixed-wrapper">
{{view Ember.Table.TableBlock classNames="ember-table-left-table-block"
contentBinding="controller.footerContent"
columnsBinding="controller.fixedColumns"
widthBinding="controller._fixedBlockWidth"
heightBinding="controller.footerHeight"
}}
{{#if controller.numFixedColumns}}
{{view Ember.Table.TableBlock classNames="ember-table-left-table-block"
contentBinding="controller.footerContent"
columnsBinding="controller.fixedColumns"
widthBinding="controller._fixedBlockWidth"
heightBinding="controller.footerHeight"
}}
{{/if}}
{{view Ember.Table.TableBlock classNames="ember-table-right-table-block"
contentBinding="controller.footerContent"
columnsBinding="controller.tableColumns"
Expand Down
12 changes: 7 additions & 5 deletions src/templates/header-container.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<div class="ember-table-table-fixed-wrapper">
{{view Ember.Table.HeaderBlock classNames="ember-table-left-table-block"
columnsBinding="controller.fixedColumns"
widthBinding="controller._fixedBlockWidth"
heightBinding="controller.headerHeight"
}}
{{#if controller.numFixedColumns}}
{{view Ember.Table.HeaderBlock classNames="ember-table-left-table-block"
columnsBinding="controller.fixedColumns"
widthBinding="controller._fixedBlockWidth"
heightBinding="controller.headerHeight"
}}
{{/if}}
{{view Ember.Table.HeaderBlock classNames="ember-table-right-table-block"
columnsBinding="controller.tableColumns"
scrollLeftBinding="controller._tableScrollLeft"
Expand Down

0 comments on commit 3f0a755

Please sign in to comment.