app/@overflow/commons/ui/component/primeng/dropdown-panel.component.ts
2018-09-05 22:55:18 +09:00

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();
}
}