diff --git a/components/button/button.ts b/components/button/button.ts index f86ced30ab5..b827a03499d 100644 --- a/components/button/button.ts +++ b/components/button/button.ts @@ -17,6 +17,8 @@ export class Button implements AfterViewInit, OnDestroy { @Input() icon: string; @Input() iconPos: string = 'left'; + + @Input() cornerStyleClass: string = 'ui-corner-all'; public _label: string; @@ -82,7 +84,7 @@ export class Button implements AfterViewInit, OnDestroy { } getStyleClass(): string { - let styleClass = 'ui-button ui-widget ui-state-default ui-corner-all'; + let styleClass = 'ui-button ui-widget ui-state-default ' + this.cornerStyleClass; if(this.icon) { if(this.label != null && this.label != undefined) { if(this.iconPos == 'left') diff --git a/components/splitbutton/splitbutton.ts b/components/splitbutton/splitbutton.ts index 4b445cfedf5..6f42016ac60 100644 --- a/components/splitbutton/splitbutton.ts +++ b/components/splitbutton/splitbutton.ts @@ -2,30 +2,15 @@ import {NgModule,Component,ElementRef,OnInit,OnDestroy,Input,Output,EventEmitter import {CommonModule} from '@angular/common'; import {DomHandler} from '../dom/domhandler'; import {MenuItem} from '../common/api'; +import {ButtonModule} from '../button/button'; import {Router} from '@angular/router'; @Component({ selector: 'p-splitButton', template: `
- - + +