-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content in popover works only with function #812
Comments
I am having same problem, but your work-around doesn't fix it for me. |
I'm update code, but first and last symbol in html, < and >,I delete. Because markdown formating link. |
I got mine working. |
I agree that using a string as value for 'content' option results in no text appearing. Likewise, if you try using a string for the 'title' option, the title appears in the popover but the text will always say 'undefined'. mikhailaleksandrovi4 is right in that if you pass a function instead of a string and return a string from the function, both the title and content will appear correctly. |
This is fixed in 2.0 |
Also, in 1.* content when a string specifies not a text option, but rather an element attribute to be used to fetch text from. This was changed in 2.0 because it didn't make a lot of sense. |
Here's a jsFiddle of it working using functions: http://jsfiddle.net/KGy6Z/2/ (Note this is for Bootstrap 1.4) |
This still doesn't work. Try the jsfiddle from swilliams. |
It works fine. That jsFiddle points to the 1.4.0 version of the JS. Here, I forked it to use 2.0.2 version. |
Weird. I did click the 2.0.2 checkbox and it didn't work. Anyway, thanks for confirming! |
I think if you explicitly add a library with the same functions (like I did with 1.4), it'll override checkboxed ones. |
I tried with the code from demo, and saw a blank content:
a href="#" class="btn danger" rel="popover" data-content="And here's some amazing content. It's very engaging. right?" data-original-title="A title">hover for popover</a
But if I use this code, all works fine:
The text was updated successfully, but these errors were encountered: