mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
rewrote window resize event using redux
This commit is contained in:
14
src/app/shared/host-window.actions.ts
Normal file
14
src/app/shared/host-window.actions.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Action } from "@ngrx/store";
|
||||
|
||||
export class HostWindowActions {
|
||||
static RESIZE = 'dspace/host-window/RESIZE';
|
||||
static resize(newWidth: number, newHeight: number): Action {
|
||||
return {
|
||||
type: HostWindowActions.RESIZE,
|
||||
payload: {
|
||||
width: newWidth,
|
||||
height: newHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user