支持传入实现了IterableIterator的数据源
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!