17 lines
415 B
TypeScript
17 lines
415 B
TypeScript
import { DataSource } from '@angular/cdk/collections';
|
|
import { Observable, of as observableOf } from 'rxjs';
|
|
|
|
import { BatchIntegrity } from './batch-integrity';
|
|
|
|
export class BatchIntegrityReportDatasource extends DataSource<BatchIntegrity> {
|
|
constructor(public data: BatchIntegrity[]) {
|
|
super();
|
|
}
|
|
|
|
connect(): Observable<BatchIntegrity[]> {
|
|
return observableOf(this.data);
|
|
}
|
|
|
|
disconnect() {}
|
|
}
|