#150 Initial grid/list view implementation

This commit is contained in:
Jonas Van Goolen
2017-10-26 09:38:27 +02:00
parent 16786a90ff
commit a704157c1f
58 changed files with 684 additions and 49 deletions

View File

@@ -0,0 +1,16 @@
import { GenericConstructor } from '../core/shared/generic-constructor';
import { ListableObject } from '../object-collection/shared/listable-object.model';
const gridElementMap = new Map();
export function gridElementFor(gridable: GenericConstructor<ListableObject>) {
return function decorator(objectElement: any) {
if (!objectElement) {
return;
}
gridElementMap.set(gridable, objectElement);
};
}
export function getGridElementFor(gridable: GenericConstructor<ListableObject>) {
return gridElementMap.get(gridable);
}