Skip to content

Commit

Permalink
Merge pull request #48 from turbosasa/dont-show-footer
Browse files Browse the repository at this point in the history
Do not show footer if there is no data for showing.
  • Loading branch information
josebalius committed Nov 29, 2014
2 parents 7a64dd8 + 916e373 commit 4807085
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jsx/reactGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,9 @@ var ngReactGridComponent = (function() {

var ngReactGridFooter = React.createClass({
render: function() {
if (this.props.grid.totalCount == 0) {
return null;
}
return (
<div className="ngReactGridFooter">
<ngReactGridStatus grid={this.props.grid} />
Expand Down

0 comments on commit 4807085

Please sign in to comment.