-
Notifications
You must be signed in to change notification settings - Fork 63
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
expose function #72
Comments
Does it work when you "expose" in another file? If the answer is yes then it's known bug for which we should have an issue open in opal/opal. |
i just tried it with putting 'expose' in the file that loads in the module. sadly same result |
@joostliketoast oh I see, I skimmed through the issue description initially and missed the fact that the problem is just with params.
require 'native'
tooltip.qtip({
show: 'click',
hide: 'unfocus',
content: {
title: {
text: tooltip.attr('title'),
button: true
},
text: tooltip.next('div') # Use the "div" element next to this for the content
},
position: {
my: 'top left', # Position my top left...
at: 'bottom right', # at the bottom right of...
target: tooltip # my target
},
style: {
classes: 'qtip-bootstrap'
}
}.to_n) |
ah thanks that worked! :) |
Great! @joostliketoast would you mind doing a PR to update the README? |
no problem i will send a PR |
Thanks! |
i tried using the qtip2 plugin for jquery, the function works with expose but it doesn't seem to take the parameters set in opal. using the x-string option works fine.
Any ideas why? did i implement it incorrectly?
The text was updated successfully, but these errors were encountered: