Skip to content

Not possible to change title for popover. #16731

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

Closed
Envek opened this issue Jun 30, 2015 · 2 comments
Closed

Not possible to change title for popover. #16731

Envek opened this issue Jun 30, 2015 · 2 comments
Labels

Comments

@Envek
Copy link

Envek commented Jun 30, 2015

Hello!

I have next code:

<a href="/foo/like" title="4 users liked this" data-requires-captcha="true">
  <span class="glyphicon glyphicon-thumbs-up"></span>
  Like!
  <span class="badge">4</span>
</a>
// In event handler
if ($(this).data().requiresCaptcha) {
  $(this).popover({title: 'Please confirm that you are human', placement: 'auto bottom'});
  return false;
} 

And when user clicks button with data-requires-captcha attribute set to true (I set it up for anonymous users), I intercept click, construct popover, and placing ReCaptcha into the popover body. But text from title attribute (obviously used for browsers' native link popover and I need it) is going to the Bootstrap popover title, and I see no way to replace it with my own (title specified in popover method call is ignored, as written in docs).

My thoughts:

  • Popover should not use standard title attribute, it should use something like data-title instead (with fallback to title if not present).
  • Popover should have some method to change title dynamically.
@cvrebert cvrebert added the js label Jun 30, 2015
@cvrebert cvrebert added the v3 label Aug 19, 2015
@cvrebert
Copy link
Collaborator

X-Ref: #18329

@mdo
Copy link
Member

mdo commented Sep 5, 2016

Bootstrap 3 is no longer being officially developed or supported.

All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4!

<3,
@mdo and team

@mdo mdo closed this as completed Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants