Implement component to switch between view modes

For now it allows to switch between list and grid views.

Fixes https://github.com/DSpace/dspace-angular/issues/171
This commit is contained in:
Àlex Magaz Graça
2017-10-09 12:05:15 +02:00
parent 311fef21f4
commit eab2dd86e2
9 changed files with 68 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import { ThumbnailComponent } from '../thumbnail/thumbnail.component';
import { SearchResultListElementComponent } from '../object-list/search-result-list-element/search-result-list-element.component';
import { SearchFormComponent } from './search-form/search-form.component';
import { WrapperListElementComponent } from '../object-list/wrapper-list-element/wrapper-list-element.component';
import { ViewModeSwitchComponent } from './view-mode-switch/view-mode-switch.component';
const MODULES = [
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
@@ -61,7 +62,8 @@ const COMPONENTS = [
PaginationComponent,
SearchFormComponent,
ThumbnailComponent,
WrapperListElementComponent
WrapperListElementComponent,
ViewModeSwitchComponent
];
const ENTRY_COMPONENTS = [