Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add property style and styleClass in component Confirm Dialog
  • Loading branch information
gaspar@viasoft.com.br committed Dec 19, 2018
1 parent f029d6e commit 8e5faee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/components/confirmdialog/confirmdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {Subscription} from 'rxjs';
selector: 'p-confirmDialog',
template: `
<div [ngClass]="{'ui-dialog ui-confirmdialog ui-widget ui-widget-content ui-corner-all ui-shadow':true,'ui-dialog-rtl':rtl}" (mousedown)="moveOnTop()"
[ngStyle]="style" [class]="styleClass"
[@animation]="{value: 'visible', params: {transitionParams: transitionOptions}}" (@animation.start)="onAnimationStart($event)" *ngIf="visible">
<div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top">
<span class="ui-dialog-title" *ngIf="header">{{header}}</span>
Expand Down Expand Up @@ -88,6 +89,10 @@ export class ConfirmDialog implements OnDestroy {
@Input() responsive: boolean = true;

@Input() appendTo: any;

@Input() style: any;

@Input() styleClass: string;

@Input() key: string;

Expand Down Expand Up @@ -378,4 +383,4 @@ export class ConfirmDialog implements OnDestroy {
exports: [ConfirmDialog,ButtonModule,SharedModule],
declarations: [ConfirmDialog]
})
export class ConfirmDialogModule { }
export class ConfirmDialogModule { }

0 comments on commit 8e5faee

Please sign in to comment.