viewer icon indicating copy to clipboard operation
viewer copied to clipboard

Viewer Vue component

Open marcelklehr opened this issue 4 years ago • 3 comments

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 avatar Feb 24 '21 11:02 marcelklehr

@marcelklehr, could you give an example usecase? What kind of app are you building?

beardhatcode avatar Mar 14 '21 13:03 beardhatcode

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.

marcelklehr avatar Mar 15 '21 14:03 marcelklehr

https://github.com/nextcloud/viewer/issues/644 ?

skjnldsv avatar Aug 06 '21 08:08 skjnldsv