mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
23 lines
957 B
TypeScript
23 lines
957 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
import { Item } from '../../../core/shared/item.model';
|
|
import { renderElementsFor } from '../../object-collection/shared/dso-element-decorator';
|
|
import { AbstractListableElementComponent } from '../../object-collection/shared/object-collection-element/abstract-listable-element.component';
|
|
import { SetViewMode } from '../../view-mode';
|
|
import { VIEW_MODE_ELEMENT } from '../../../+item-page/simple/related-items/related-items-component';
|
|
|
|
@Component({
|
|
selector: 'ds-item-list-element',
|
|
styleUrls: ['./item-list-element.component.scss'],
|
|
templateUrl: './item-list-element.component.html'
|
|
})
|
|
|
|
/**
|
|
* The component used to list items depending on type
|
|
* Uses item-type-switcher to determine which components to use for displaying the list
|
|
*/
|
|
@renderElementsFor(Item, SetViewMode.List)
|
|
export class ItemListElementComponent extends AbstractListableElementComponent<Item> {
|
|
viewMode = VIEW_MODE_ELEMENT;
|
|
}
|