38 lines
809 B
TypeScript
38 lines
809 B
TypeScript
import { Component, Input, ContentChild, ViewChild } from '@angular/core';
|
|
import { Header, Footer } from 'primeng/primeng';
|
|
import { PopupPanelComponent } from './popup-panel.component';
|
|
|
|
@Component({
|
|
selector: 'of-p-dropdownPanel',
|
|
templateUrl: './dropdown-panel.component.html',
|
|
styleUrls: ['./dropdown-panel.component.scss'],
|
|
})
|
|
export class DropdownPanelComponent {
|
|
@Input() blockTarget: any;
|
|
|
|
@Input() style: any;
|
|
|
|
@Input() styleClass: string;
|
|
|
|
@Input() headerStyle: any;
|
|
|
|
@Input() headerStyleClass: string;
|
|
|
|
@Input() footerStyle: any;
|
|
|
|
@Input() footerStyleClass: string;
|
|
|
|
@ContentChild(Header) headerFacet;
|
|
|
|
@ContentChild(Footer) footerFacet;
|
|
|
|
@ViewChild('popupPanel') popupPanel: PopupPanelComponent;
|
|
|
|
constructor() { }
|
|
|
|
hide(): void {
|
|
this.popupPanel.hide();
|
|
}
|
|
|
|
}
|