import {NgModule,Component,Input,Output,EventEmitter,ElementRef} from '@angular/core'; import {CommonModule} from '@angular/common'; import {BlockableUI} from '../common/blockableui'; @Component({ selector: 'p-toolbar', template: `
` }) export class Toolbar implements BlockableUI { @Input() style: any; @Input() styleClass: string; constructor(private el: ElementRef) {} getBlockableElement(): HTMLElement { return this.el.nativeElement.children[0]; } } @NgModule({ imports: [CommonModule], exports: [Toolbar], declarations: [Toolbar] }) export class ToolbarModule { }