Skip to content

Commit

Permalink
Merge pull request #11572 from volvachev/feat-add-maskstyleclass
Browse files Browse the repository at this point in the history
feat(primeng/dynamic-dialog): add new option for dynamic dialog config
  • Loading branch information
cetincakiroglu authored Jun 6, 2022
2 parents a81960b + 7cbd759 commit 64e50d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/components/dynamicdialog/dynamicdialog-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ export class DynamicDialogConfig {
closable?: boolean;
showHeader?: boolean;
modal?: boolean;
maskStyleClass?: string;
}
2 changes: 1 addition & 1 deletion src/app/components/dynamicdialog/dynamicdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const hideAnimation = animation([
@Component({
selector: 'p-dynamicDialog',
template: `
<div #mask [ngClass]="{'p-dialog-mask':true, 'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker': config.modal !== false}">
<div #mask [ngClass]="{'p-dialog-mask':true, 'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker': config.modal !== false}" [class]="config.maskStyleClass">
<div [ngClass]="{'p-dialog p-dynamic-dialog p-component':true, 'p-dialog-rtl': config.rtl}" [ngStyle]="config.style" [class]="config.styleClass"
[@animation]="{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}"
(@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog" *ngIf="visible"
Expand Down

0 comments on commit 64e50d4

Please sign in to comment.