Skip to content

Commit

Permalink
fix(footer): custom footer should work anytime pagination is disabled
Browse files Browse the repository at this point in the history
- it should work when pagination is disabled even when using BackendServiceApi
  • Loading branch information
ghiscoding-SE committed Feb 3, 2020
1 parent 4d5e65b commit 7d9798a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/examples/grid-graphql-nopage.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class GridGraphqlWithoutPaginationComponent implements OnInit {
showPreHeaderPanel: true,
preHeaderPanelHeight: 28,
datasetIdPropertyName: 'code',
showCustomFooter: true, // display some metrics in the bottom custom footer
backendServiceApi: {
// use the GraphQL Service to build the query but use local (in memory) Filtering/Sorting strategies
// the useLocalFiltering/useLocalSorting flags can be enabled independently
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy, OnIn
}

// we will display the custom footer only when there's no Pagination
if (!(this.gridOptions.backendServiceApi || this.gridOptions.enablePagination)) {
if (!this.gridOptions.enablePagination) {
this.showCustomFooter = this.gridOptions.hasOwnProperty('showCustomFooter') ? this.gridOptions.showCustomFooter : false;
this.customFooterOptions = this.gridOptions.customFooterOptions || {};
}
Expand Down

0 comments on commit 7d9798a

Please sign in to comment.