17 lines
440 B
TypeScript
17 lines
440 B
TypeScript
import { DataSource } from '@angular/cdk/collections';
|
|
import { Observable, of as observableOf } from 'rxjs';
|
|
|
|
import { ReceivePaymentItem } from '../../core/receive-payment-item';
|
|
|
|
export class ReceivePaymentDatasource extends DataSource<ReceivePaymentItem> {
|
|
constructor(private data: ReceivePaymentItem[]) {
|
|
super();
|
|
}
|
|
|
|
connect(): Observable<ReceivePaymentItem[]> {
|
|
return observableOf(this.data);
|
|
}
|
|
|
|
disconnect() {}
|
|
}
|