2020-10-01 15:21:22 +00:00
|
|
|
import { DataSource } from '@angular/cdk/collections';
|
|
|
|
import { Observable } from 'rxjs';
|
2020-10-10 03:15:05 +00:00
|
|
|
|
|
|
|
import { EmployeeAttendanceItem } from './employee-attendance-item';
|
2018-05-25 13:49:00 +00:00
|
|
|
|
|
|
|
export class EmployeeAttendanceDataSource extends DataSource<EmployeeAttendanceItem> {
|
|
|
|
constructor(private data: Observable<EmployeeAttendanceItem[]>) {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
connect(): Observable<EmployeeAttendanceItem[]> {
|
|
|
|
return this.data;
|
|
|
|
}
|
|
|
|
|
2020-10-01 15:21:22 +00:00
|
|
|
disconnect() {}
|
2018-05-25 13:49:00 +00:00
|
|
|
}
|