/**
* Created by Menna on 8/23/16.
*/
import { ElementRef, Input, Component, AfterViewInit, ViewChild } from '@angular/core';
import { Window } from './window.widget'
import WindowOptions = kendo.ui.WindowOptions;
@Component({
selector: 'kendo_window',
template: `
`,
styleUrls: ['./window.style.css']
})
export class WindowComponent implements AfterViewInit {
@Input()
private options: WindowOptions;
@ViewChild('devRef')
private element: ElementRef;
private protoType: Window;
ngAfterViewInit() {
this.protoType = new Window(this.element.nativeElement, this.options);
}
get ProtoType(): Window {
return this.protoType;
}
set ProtoType(protoType: Window) {
this.protoType = protoType;
}
}