19 lines
426 B
TypeScript
19 lines
426 B
TypeScript
|
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() {
|
||
|
}
|
||
|
}
|