Skip to content

Conversation

@piotrmocek
Copy link

Allow lightbox to show preview of PDF files. PDF's are opened in iframe.

},
"repository": {
"type": "git",
"url": "git+https://github.com/themyth92/ngx-lightbox.git"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please dont change the name of the package

}

public needsIframe(src: string) {
// const sanitizedUrl = this._sanitizer.sanitize(SecurityContext.URL, src);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove this line if it is not needed ?

this.albums.push({
src: 'demo/img/image5.pdf',
thumb: 'demo/img/image5-thumb.jpg',
iframe: true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the iframe options needed ? I dont really understand why it is needed for an image ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants