// just to mark it hidden.
@Input() hideFields: string;
+ // Allow the caller to jump directly to a specific page of
+ // grid data.
+ @Input() pageOffset: number;
+
context: GridContext;
// These events are emitted from our grid-body component.
this.context.defaultHiddenFields = this.hideFields.split(',');
}
+ if (this.pageOffset) {
+ this.context.pager.offset = this.pageOffset;
+ }
+
// TS doesn't seem to like: let foo = bar || () => '';
this.context.rowClassCallback =
this.rowClassCallback || function () { return ''; };