Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Select qtip to hide on click? #41

Closed
Charuru opened this issue Jan 20, 2011 · 1 comment
Closed

Select qtip to hide on click? #41

Charuru opened this issue Jan 20, 2011 · 1 comment
Assignees

Comments

@Charuru
Copy link

Charuru commented Jan 20, 2011

I'm trying to hide the qtip when the tip itself is clicked.

    elem.qtip({
        hide: {
            event: 'click',
            target: $(this)
        },
    });

I don't think $(this) refers to the qtip, clicking on anything hides the qtip. Is there a way to select the qtip?

Thanks.

@Craga89
Copy link
Contributor

Craga89 commented Jan 20, 2011

You can't refer to the tooltip in the config options... what you'll need to do if use the render event:

elem.qtip({
    hide: false,
    events: {
        render: function(event, api) {
            api.elements.tooltip.click(api.hide);
        }
    }
});

@ghost ghost assigned Craga89 Nov 27, 2012
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants