-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Add argument data-target to popover #13029
Comments
I also wanted this and accomplished it fairly straightforward as a content function you can pass to
|
thank you @drewlustro . |
Not arguing against your request, just giving you a way to do it in the On Tuesday, April 29, 2014, Kay Strobach notifications@github.com wrote:
|
👍 i understood. never wanted to offend you. |
👍 @kaystrobach did that help you out? I just implemented a bunch of code that heavily employs It's maybe worth noting that complex content with additional javascript handlers inside popover content must be attached to the DOM after bootstrap fires its |
in my case it is a valid solution, even if i used it before ... |
Punting to the v4 checklist. |
I thought |
@eguneys Yeah, we'd likely name it something else. The core idea is reasonable though. |
If you want to keep event binding, you can use this: $('[rel=popover]').each(function () {
var targetId = $(this).attr('href');
var target = $(targetId).detach();
$(this).popover({
html: true,
content: function () {
return target;
}
});
}); |
Having this we can use popovers to display html content easier and it is better to read than the
data-content
attribute, which is currently available.The text was updated successfully, but these errors were encountered: