Ng-zorro-antd: nzDataSource support IterableIterator?

Created on 2 Feb 2018  路  1Comment  路  Source: NG-ZORRO/ng-zorro-antd

What problem does this feature solve?

鏀寔浼犲叆瀹炵幇浜咺terableIterator鐨勬暟鎹簮

support passing datasource which implements IterableIterator.

What does the proposed API look like?

@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 ;}
    }
}
Table 馃挭 Enhancement

Most helpful comment

I've built my own DataSource to interact with the NzTableComponent, but native support, especially with virtual scroll, would be totally awesome!

>All comments

I've built my own DataSource to interact with the NzTableComponent, but native support, especially with virtual scroll, would be totally awesome!

Was this page helpful?
0 / 5 - 0 ratings