jQuery-jSlots icon indicating copy to clipboard operation
jQuery-jSlots copied to clipboard

How to call it on a jquery function

Open Aggreyluts opened this issue 8 years ago • 2 comments

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

Aggreyluts avatar Feb 20 '17 20:02 Aggreyluts

any luck on this?

johhansantana avatar Jun 01 '17 19:06 johhansantana

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

https://github.com/matthewlein/jQuery-jSlots/blob/e87ce43045ed3f7718e9951ffb15826ba298694f/jquery.jSlots.js#L19

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();

matthewlein avatar Jun 01 '17 19:06 matthewlein