Skip to content
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

Allow jQuery object for title in popover (or add close button option) #3586

Closed
Altreus opened this issue May 24, 2012 · 2 comments
Closed

Allow jQuery object for title in popover (or add close button option) #3586

Altreus opened this issue May 24, 2012 · 2 comments
Labels

Comments

@Altreus
Copy link

Altreus commented May 24, 2012

I wanted to use a popover to alert the user to a condition on a button, and to require feedback to reactivate the button. So I created a manual popover and populated the title with some markup, which worked fine.

Trouble is I have to rebind the event handler to my close button every time.

I had an honest crack at trying to amend the setContent method to use 'append' if it was a jQuery object passed in, but even though it did use append, the event handler was not preserved. I can't work out why.

The alternative would be simply to have an option for a close button to be included in the popover, so that if the trigger is 'manual' then there's a built-in way of dismissing it.

@quasipickle
Copy link
Contributor

In this case I think a modal would be a more appropriate approach.

@fat
Copy link
Member

fat commented May 28, 2012

Sorry, the popover doesn't support this functionality at the moment. You're best bet is subclassing the popover to add more advanced behavior. It's a cool idea, so you might be able to get help on that in the mailing list or irc channel. thanks!

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