Coder Social home page Coder Social logo

Comments (4)

idleberg avatar idleberg commented on August 28, 2024

At first I wasn't sure what you're asking for, but then I noticed that, with enable_viewer set to true, the default shortcut to open in a new tab (e.g. Cmd + mouse-click on macOS does not work). However, you can still select ”Open in New Tab” from the context menu or using the middle mouse-button (not sure if that's a default action).

With the viewer disabled, Cmd + mouse-click works fine. I'll have to look into the issue, why it's not working when the viewer is enabled.

from bootstrap-listr.

smartpapers avatar smartpapers commented on August 28, 2024

@idleberg
No can we make it like we simply click on the document, Or tap as in mobile browsers and it opens the links in a new window?
What I want is...

That lister should open links in them in a separate new window maybe using a tag or something like target="_blank". E.g:

A link is clicked.
Bootstrap Lister page opens.
10 Files are listed there.
I click/tap on the file and it opens in a Separate/New window.

I have already disabled the viewer. It opens the files directly when I click on them but opens them on the same page, I want it to open in a new tab.

from bootstrap-listr.

idleberg avatar idleberg commented on August 28, 2024

I'm very much opposed to the idea of using the target attribute for reasons described in this article. As I said before, there are better ways to open links in new tabs β€” use the tools every browser provides for that.

However, I'm going to leave this issue open and consider making Listr v3 more flexible, so that it's easier to customize it that way.

from bootstrap-listr.

smartpapers avatar smartpapers commented on August 28, 2024

@idleberg So for now there is no solution to it?
Basically what I'm trying to do is display listr in an iframe on a page.

The problem is it works fine on Laptops and PCs but in a mobile browser the PDF opens but does not scroll down. It only shows the first page hence I was wondering if I could just force it to open in a new tab i.e: out of iframe.

from bootstrap-listr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.