鏀寔浼犲叆瀹炵幇浜咺terableIterator鐨勬暟鎹簮
support passing datasource which implements IterableIterator.
@Component({
selector: 'nz-demo-table-basic',
template: `<nz-table #nzTable [nzDataSource]="data" [nzPageSize]="10"> ...`
})
export class NzDemoTableBasicComponent {
data = generator(0);
*generator(i) {
while(i < 3) { yield i ;}
}
}
I've built my own DataSource to interact with the NzTableComponent, but native support, especially with virtual scroll, would be totally awesome!
Most helpful comment
I've built my own
DataSourceto interact with theNzTableComponent, but native support, especially with virtual scroll, would be totally awesome!