adjust filter style and add filter to device list

This commit is contained in:
Jesse Lucas
2020-03-31 20:40:36 -04:00
parent 06eacb87d8
commit cce8b60515
9 changed files with 88 additions and 39 deletions
@@ -17,16 +17,16 @@ export class FolderListComponent implements AfterViewInit, OnInit {
@ViewChild(MatTable) table: MatTable<Folder>;
dataSource: MatTableDataSource<Folder>;
applyFilter(event: Event) {
const filterValue = (event.target as HTMLInputElement).value;
this.dataSource.filter = filterValue.trim().toLowerCase();
}
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
displayedColumns = ['id', 'label', 'path', 'state'];
constructor(private systemConfigService: SystemConfigService) { };
applyFilter(event: Event) {
const filterValue = (event.target as HTMLInputElement).value;
this.dataSource.filter = filterValue.trim().toLowerCase();
}
ngOnInit() {
this.dataSource = new MatTableDataSource();
this.dataSource.data = [];