Open 1456118242 opened 6 years ago
const componentContext = { message: 'Hello Modal' }; const dialogRef = this.modal .open(RoutePrintSummaryComponent, overlayConfigFactory(componentContext));
export class RoutePrintSummaryComponent implements OnInit{ theme: VEXBuiltInThemes = 'default'; constructor(public dialog:DialogRef){ // this.dialog.context.dialogClass = 'modal-dialog modal-lg'; this.dialog.context.className = this.theme; this.dialog.context.contentClassName = "vex-content"; this.dialog.context.overlayClassName = "vex-overlay"; }
ngOnInit(){
} onClose(){
} onOk(): void { this.dialog.close('Ok'); } }
@shlomiassaf
const componentContext ={ message: 'Hello Modal' };
const dialogRef = this.modal
.open(RoutePrintSummaryComponent, overlayConfigFactory(componentContext));
export class RoutePrintSummaryComponent implements OnInit{ theme: VEXBuiltInThemes ='default';
constructor(public dialog:DialogRef){
// this.dialog.context.dialogClass = 'modal-dialog modal-lg';
this.dialog.context.className = this.theme;
this.dialog.context.contentClassName = "vex-content";
this.dialog.context.overlayClassName = "vex-overlay";
}
ngOnInit(){
} onClose(){
} onOk(): void { this.dialog.close('Ok'); } }