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

How to call it on a jquery function #16

Open
Aggreyluts opened this issue Feb 20, 2017 · 2 comments
Open

How to call it on a jquery function #16

Aggreyluts opened this issue Feb 20, 2017 · 2 comments

Comments

@Aggreyluts
Copy link

Instead of using the spin event and spinner how can you call it in a functions

@johhansantana
Copy link

any luck on this?

@matthewlein
Copy link
Owner

Looks like a reference to the jSlots base object is set on $el.data("jSlots", base).

base.$el.data("jSlots", base);

So after instantiating it, you should be able to make calls directly using that. Something along the lines of this:

var $slot = $('.slot').jSlots();
$slot.data('jSlots').playSlots();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants