Unable to implement grid paginator
New DiscussionHello,
I must be missing something simple, but I can’t seem to get the igx-paginator template to work. My app won’t even build if I add it in. I get the following error:
“Can’t bind to ‘page’ since it isn’t a known property of ‘igx-paginator’.”
Am I missing some type of hook up?
I was basing it off of the example given here: https://stackblitz.com/angular/gkpvooerkqd?file=src%2Fapp%2Fgrid%2Fgrid-pager-sample%2Fgrid-pager-sample.component.html
Here are the relevant (I think) bits of code/config. If I’m missing anything you would need to see, let me know. Thanks
NOTE: I’ve stripped out code that retrieves my data, so assume that the data is there. The data populates just fine.
package.json:
"igniteui-angular": "9.0.4",
app.module.ts:
imports: [
CoreModule
]
core.module.ts:
import {
IgxGridModule
} from 'igniteui-angular';
@NgModule({
imports: [
IgxGridModule,
],
exports: [
IgxGridModule
]
})
export class CoreModule { }
work.component.html:
work.component.ts:
export class WorkComponent implements OnInit {
workResults: any[];
public densityOptions: string[];
public isDropdownHidden = false;
public isPagerHidden = false;
public isDropdownDisabled = false;
public isPagerDisabled = false;
public selectOptions = [5, 15, 20, 50];
ngOnInit() {
this.densityOptions = ["compact", "cosy", "comfortable"];
}
}
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
5 Created On
Mar 06, 2020 Last Post
5 years, 11 months ago