mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-29 04:55:11 +00:00
Fix manual and instumented layout changes (force event 'resize')
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Component, Input, Output, OnInit } from '@angular/core';
|
||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
||||
import { config } from '../config';
|
||||
|
||||
@Component({
|
||||
@ -7,14 +7,15 @@ import { config } from '../config';
|
||||
styleUrls: ['./sidebar.component.scss']
|
||||
})
|
||||
|
||||
export class SidebarComponent implements OnInit {
|
||||
@Input() @Output() layout: string;
|
||||
export class SidebarComponent {
|
||||
@Input() layout: string;
|
||||
@Output() layoutChanged = new EventEmitter<string>();
|
||||
enabledLayouts: Set<string> = config.dashboard.enabledLayouts;
|
||||
|
||||
constructor() {}
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
setLayout(layout: string) {
|
||||
this.layout = layout;
|
||||
this.layoutChanged.emit(this.layout);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user