</div>
</div>
+ <ng-container *ngIf="!gridContext.disablePaging">
+
<button [disabled]="gridContext.pager.isFirstPage()" type="button"
class="btn btn-outline-dark mr-1" (click)="gridContext.pager.toFirst()">
<span title="First Page" i18n-title
<span title="Next Page" i18n-title
class="material-icons mat-icon-in-button">keyboard_arrow_right</span>
</button>
-
- <!--
- Hiding jump-to-last since there's no analog in the angularjs grid and
- it has limited value since the size of the data set is often unknown.
- <button [disabled]="!gridContext.pager.resultCount || gridContext.pager.isLastPage()"
- type="button" class="btn btn-outline-dark mr-1" (click)="gridContext.pager.toLast()">
- <span title="First Page" i18n-title
- class="material-icons mat-icon-in-button">last_page</span>
- </button>
- -->
-
<div ngbDropdown class="mr-1" placement="bottom-right">
<button ngbDropdownToggle class="btn btn-outline-dark text-button">
<span title="Select Row Count" i18n-title i18n>
</a>
</div>
</div>
+
+ </ng-container><!-- if disablePaging-->
+
<button type="button"
class="btn btn-outline-dark mr-1"
// field on the "aout" class.
@Input() showLinkSelectors: boolean;
+ @Input() disablePaging: boolean;
+
context: GridContext;
// These events are emitted from our grid-body component.
this.context.disableMultiSelect = this.disableMultiSelect === true;
this.context.rowFlairIsEnabled = this.rowFlairIsEnabled === true;
this.context.rowFlairCallback = this.rowFlairCallback;
+ this.context.disablePaging = this.disablePaging === true;
if (this.showFields) {
this.context.defaultVisibleFields = this.showFields.split(',');
}
defaultHiddenFields: string[];
overflowCells: boolean;
showLinkSelectors: boolean;
+ disablePaging: boolean;
// Allow calling code to know when the select-all-rows-in-page
// action has occurred.
this.store = store;
this.format = format;
this.pager = new Pager();
- this.pager.limit = 10;
this.rowSelector = new GridRowSelector();
this.toolbarButtons = [];
this.toolbarCheckboxes = [];
this.columnSet.isMultiSortable = this.isMultiSortable === true;
this.columnSet.defaultHiddenFields = this.defaultHiddenFields;
this.columnSet.defaultVisibleFields = this.defaultVisibleFields;
+ if (!this.pager.limit) {
+ this.pager.limit = this.disablePaging ? MAX_ALL_ROW_COUNT : 10;
+ }
this.generateColumns();
}