2018-09-05 13:55:18 +00:00
|
|
|
import { Component, Input, ContentChild, ViewChild } from '@angular/core';
|
2018-08-18 01:04:59 +00:00
|
|
|
import { Header, Footer } from 'primeng/primeng';
|
2018-09-05 13:55:18 +00:00
|
|
|
import { PopupPanelComponent } from './popup-panel.component';
|
2018-08-17 10:53:40 +00:00
|
|
|
|
|
|
|
@Component({
|
2018-08-18 01:04:59 +00:00
|
|
|
selector: 'of-p-dropdownPanel',
|
2018-08-17 10:53:40 +00:00
|
|
|
templateUrl: './dropdown-panel.component.html',
|
|
|
|
styleUrls: ['./dropdown-panel.component.scss'],
|
|
|
|
})
|
2018-08-18 01:04:59 +00:00
|
|
|
export class DropdownPanelComponent {
|
|
|
|
@Input() blockTarget: any;
|
2018-08-17 10:53:40 +00:00
|
|
|
|
|
|
|
@Input() style: any;
|
|
|
|
|
|
|
|
@Input() styleClass: string;
|
|
|
|
|
2018-08-18 01:04:59 +00:00
|
|
|
@Input() headerStyle: any;
|
2018-08-17 10:53:40 +00:00
|
|
|
|
2018-08-18 01:04:59 +00:00
|
|
|
@Input() headerStyleClass: string;
|
2018-08-17 10:53:40 +00:00
|
|
|
|
2018-08-18 01:04:59 +00:00
|
|
|
@Input() footerStyle: any;
|
2018-08-17 10:53:40 +00:00
|
|
|
|
2018-08-18 01:04:59 +00:00
|
|
|
@Input() footerStyleClass: string;
|
2018-08-17 10:53:40 +00:00
|
|
|
|
|
|
|
@ContentChild(Header) headerFacet;
|
|
|
|
|
|
|
|
@ContentChild(Footer) footerFacet;
|
|
|
|
|
2018-09-05 13:55:18 +00:00
|
|
|
@ViewChild('popupPanel') popupPanel: PopupPanelComponent;
|
|
|
|
|
2018-08-18 01:04:59 +00:00
|
|
|
constructor() { }
|
2018-08-17 10:53:40 +00:00
|
|
|
|
2018-09-05 13:55:18 +00:00
|
|
|
hide(): void {
|
|
|
|
this.popupPanel.hide();
|
|
|
|
}
|
|
|
|
|
2018-08-17 10:53:40 +00:00
|
|
|
}
|