Code Monkey home page Code Monkey logo

Comments (9)

thednp avatar thednp commented on May 12, 2024

It has been discussed before, this cannot work.

from bootstrap.native.

Aspie96 avatar Aspie96 commented on May 12, 2024

In my case, thouhg, I have to edit the content of the page using innerHTML (because I use templates).

Is there any workaround to make it work in this case?

from bootstrap.native.

thednp avatar thednp commented on May 12, 2024

There is no workaround, there's only the hard way, re-init the functions you need via

new Tooltip('selector');

and you are fine.

UPDATE: you should hook this on the page update or your event to add more items to the page.

from bootstrap.native.

Aspie96 avatar Aspie96 commented on May 12, 2024

Just in case someone wants to check it out too:

https://github.com/Aspie96/bootstrap.native.dynamic

from bootstrap.native.

mathieuleclaire avatar mathieuleclaire commented on May 12, 2024

@Aspie96 You're lib is really cool, thanks ! I had typically the problem of generating tabs dynamically and I did find any options to run them properly at runtime. This work properly without any modification of my code.

from bootstrap.native.

Aspie96 avatar Aspie96 commented on May 12, 2024

Thank you, mate!

As for the reasons NOT to use my library, read this:
#102 (comment)

I am not suggesting that you should not use it, of course (I shared it precisely so that you could use it), but I am saying that you should check that out first.

from bootstrap.native.

mathieuleclaire avatar mathieuleclaire commented on May 12, 2024

What do you mean, it renders the page slower ?

from bootstrap.native.

thednp avatar thednp commented on May 12, 2024

No, but the JavaScript runtime is much slower, and gets even slower the more elements you append to the document, a quick info on that here (I hope I didn't missclick the link)

from bootstrap.native.

Aspie96 avatar Aspie96 commented on May 12, 2024

Still, I am using my version on my own website and it works perfectly (and, of course, many many people use jQuery or other libraries), so it might be a completely fine solution from what you wanna do.

from bootstrap.native.

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.