1
0
Files
yel-dspace-angular/src/app/shared/host-window.actions.ts
2017-05-25 17:27:31 +02:00

22 lines
463 B
TypeScript

import { Action } from "@ngrx/store";
import { type } from "./ngrx/type";
export const HostWindowActionTypes = {
RESIZE: type('dspace/host-window/RESIZE')
};
export class HostWindowResizeAction implements Action {
type = HostWindowActionTypes.RESIZE;
payload: {
width: number;
height: number;
};
constructor(width: number, height: number) {
this.payload = { width, height }
}
}
export type HostWindowAction
= HostWindowResizeAction;