Giter VIP home page Giter VIP logo

Comments (3)

Persedes avatar Persedes commented on July 21, 2024

add a < br > (minus the spaces...) instead of \n in your string

from shinybs.

jefferys avatar jefferys commented on July 21, 2024

First, thanks for this great package and for your work to get it up and running again after major breaking changes upstream from you.

Unfortunately, I need to expand the scope of this issue. I too ran into the problem mentioned above, but it is slightly more complex than just not rendering "\n". Not a major problem once I figured out why things weren't working, but I wasted some time getting things working.

It seems popovers and tooltips will fail silently with actual line breaks in the string content in the source code, even when not rendered. This is hard to show here, but for example, if my source code looks something like:

    bsPopover( 'id', title='Title', content="<p>Paragraph 1</p><p>Paragraph 2</p>" )

it works, but if it looks like

    bsPopover( 'if', title='Title', content="<p>Paragraph 1</p>
                                             <p>Paragraph 2</p>" )

with any real line break inside the quoted string, nothing will show. It also might be that all following popovers will fail to show after one breaks due to this. I am using shinyBS 0.61 and working on a mac in Rstudio, in case that matters.

Thanks again!

from shinybs.

blosloos avatar blosloos commented on July 21, 2024

Yes, thanks for this great package! I just would like to add to the above comment that I observed the same behaviour, on R 4.1.2, shinyBS version 0.61, Windows. With coding line breaks in content="" nothing is shown ...

from shinybs.

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.