// Allow the caller to jump directly to a specific page of
// grid data.
@Input() pageOffset: number;
+ // Pass in a default page size. May be overridden by settings.
+ @Input() pageSize: number;
// If true and an idlClass is specificed, the grid assumes
// datatype=link fields that link to classes which define a selector
this.context.pager.offset = this.pageOffset;
}
+ if (this.pageSize) {
+ this.context.pager.limit = this.pageSize;
+ }
+
// TS doesn't seem to like: let foo = bar || () => '';
this.context.rowClassCallback =
this.rowClassCallback || function () { return ''; };