forked from hazza/dspace-angular
#150 Moved list,grid and object-collection to shared package
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
@import '../../../../styles/variables';
|
||||
|
||||
:host {
|
||||
display: block;
|
||||
margin-bottom: $spacer;
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { ListableObject } from '../../object-collection/shared/listable-object.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-object-list-element',
|
||||
styleUrls: ['./object-list-element.component.scss'],
|
||||
templateUrl: './object-list-element.component.html'
|
||||
})
|
||||
export class ObjectListElementComponent <T extends ListableObject> {
|
||||
object: T;
|
||||
public constructor(@Inject('objectElementProvider') public listable: ListableObject) {
|
||||
this.object = listable as T;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user