tanshu
5ea09df272
Now all that is needed is to make it ready for strict compiling. Removed eslint-plugin-prettier as it is not recommended and causes errors for both eslint and prettier Bumped to v8.0.0
17 lines
433 B
TypeScript
17 lines
433 B
TypeScript
import { DataSource } from '@angular/cdk/collections';
|
|
import { Observable } from 'rxjs';
|
|
|
|
import { EmployeeAttendanceItem } from './employee-attendance-item';
|
|
|
|
export class EmployeeAttendanceDataSource extends DataSource<EmployeeAttendanceItem> {
|
|
constructor(private data: Observable<EmployeeAttendanceItem[]>) {
|
|
super();
|
|
}
|
|
|
|
connect(): Observable<EmployeeAttendanceItem[]> {
|
|
return this.data;
|
|
}
|
|
|
|
disconnect() {}
|
|
}
|