viewer
viewer copied to clipboard
Viewer Vue component
Is your feature request related to a problem? Please describe. I'd like to embed viewer in my app, but not as a full screen view, but more like a scrollable component.
Describe the solution you'd like I think, ideally we'd have a vue component to create file views.
@marcelklehr, could you give an example usecase? What kind of app are you building?
I'm working on the bookmarks app. People can bookmark links from the web. When bookmarking articles, the text is downloaded for offline use. Similarly, when people bookmark links to a file (like a pdf, or an image, or what have you, on the web), this is also downloaded, into a folder in files and connected to the associated bookmark. When opening the details of such a bookmark in the app, I want people to be able to view the downloaded content. If it's text, it'll get displayed directly. If it's a file, I'm currently using an iframe, but it would be nice to have a Viewer component for this.
https://github.com/nextcloud/viewer/issues/644 ?