Big Chunk of updates on way to making the sales portion working
This commit is contained in:
17
bookie/src/app/devices/device-list/device-list-datasource.ts
Normal file
17
bookie/src/app/devices/device-list/device-list-datasource.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { DataSource} from '@angular/cdk/collections';
|
||||
import { Observable, of as observableOf} from 'rxjs';
|
||||
import { Device} from '../../core/device';
|
||||
|
||||
export class DeviceListDataSource extends DataSource<Device> {
|
||||
|
||||
constructor(public data: Device[]) {
|
||||
super();
|
||||
}
|
||||
|
||||
connect(): Observable<Device[]> {
|
||||
return observableOf(this.data);
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user