Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public showPopUpPdf() {
const config = new DejaPopupConfig();
config.title = `Pdf ${DejaPopupConfig.dialogCount}`;
config.url = this.dummyPdfUrl;
config.padding = false;
config.toolbarIconName = 'photo_camera';
config.toolbarColor = 'accent';
config.toolbarActions = [
new DejaPopupButton('account', 'User', 'account_circle', false),
new DejaPopupButton('view', 'Show', 'visibility', false),
];
config.ensureDimension();
this.dejaPopupService.openPopUp(config).pipe(
filter((resp: DejaPopupReponse) => !!resp))
.subscribe((response: DejaPopupReponse) => {
this.showResponse(response);