-
Notifications
You must be signed in to change notification settings - Fork 137
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
Feature Request: Add powerTipPreOpen #97
Comments
It's an easy fix too, just add two lines in
|
Actually, I need a slight change to the above, because the elements need to be visible to have their attributes set:
|
You had me up until here. What exactly are you trying to do that requires the tooltip content to be visible? Without knowing the specifics of your situation, generally, if you run into such a situation it would be best to create/modify your elements outside of the document via DOM document fragments or jQuery detached elements. Then you can clone or move the fully prepared elements to the tooltip element via the |
If you don't call To see an example, go here and hover over Oracle in the party names. |
Wow, that is probably the largest tooltip that I have ever seen (imho too large). What are you trying to do here that requires or would be made easier by having a pre-open event? |
All of the white little boxes are the attorneys in the case. If I add the boxes naively they look really bad because there are oddly spaced gaps between the attorney names. To fix that, I use the masonry library which stacks them nicely. I want masonry to run before I start fading in the tooltip. However, in order for masonry to run properly, the elements need to be fully rendered. Accordingly, I |
I've never used masonry before. But have you tried running it on an unattached jQuery object? You might be able to generate your tooltip content in a new jQuery object, run masonry on it, then attach that object to the Example: // domready
$(function() {
var attorneyList = $('<div><div class="attorney">Foo Bar, Esq.</div></div>');
attorneyList.masonry(masonryOptions);
$('#plaintiff').data('powertipjq', attorneyList);
$('#plaintiff').powerTip();
}); |
Currently there is an event before the data is rendered and after it is displayed to the user. It would be nice if there was an event that was triggered after render but before user display. We often want to fiddle with the placement of certain items before showing them to the user.
The text was updated successfully, but these errors were encountered: