brewman/overlord/src/app/employee-attendance/employee-attendance-datasource.ts

19 lines
426 B
TypeScript
Raw Normal View History

import {DataSource} from '@angular/cdk/collections';
import {Observable} from 'rxjs';
import {EmployeeAttendanceItem} from './employee-attendance';
export class EmployeeAttendanceDataSource extends DataSource<EmployeeAttendanceItem> {
constructor(private data: Observable<EmployeeAttendanceItem[]>) {
super();
}
connect(): Observable<EmployeeAttendanceItem[]> {
return this.data;
}
disconnect() {
}
}