mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 21:43:04 +00:00
#150 Initial grid/list view implementation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { ListableObject } from '../../object-collection/shared/listable-object.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-object-grid-element',
|
||||
styleUrls: ['./object-grid-element.component.scss'],
|
||||
templateUrl: './object-grid-element.component.html'
|
||||
})
|
||||
export class ObjectGridElementComponent <T extends ListableObject> {
|
||||
object: T;
|
||||
public constructor(@Inject('objectElementProvider') public gridable: ListableObject) {
|
||||
this.object = gridable as T;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user