55693: Item mapper page + ItemSelectComponent

This commit is contained in:
Kristof De Langhe
2018-09-26 09:44:01 +02:00
parent bfb6b1f262
commit 6b986c8c91
12 changed files with 194 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
import { Component, Input, OnInit } from '@angular/core';
import { ItemDataService } from '../../core/data/item-data.service';
import { PaginatedList } from '../../core/data/paginated-list';
import { RemoteData } from '../../core/data/remote-data';
import { Observable } from 'rxjs/Observable';
import { Item } from '../../core/shared/item.model';
@Component({
selector: 'ds-item-select',
styleUrls: ['./item-select.component.scss'],
templateUrl: './item-select.component.html'
})
export class ItemSelectComponent implements OnInit {
@Input()
items$: Observable<RemoteData<PaginatedList<Item>>>;
checked: boolean[] = [];
constructor(private itemDataService: ItemDataService) {
}
ngOnInit(): void {
this.items$ = this.itemDataService.findAll({});
}
}