jquery.smallipop icon indicating copy to clipboard operation
jquery.smallipop copied to clipboard

Allow manual open/close

Open ArianeNubee opened this issue 9 years ago • 0 comments

Right now, Smallipop is called this way :

$('.myElement').smallipop({options});

It would be nice if it were possible to additionally call it this way

var mySmallipop = $('.myElement').smallipop({options}).init()
$('.myElement').on('click touch mouseenter', function() {
    $('.myElement').smallipop().open();

    //Or

    mySmallipop.open();
});

And then :

$('.myCloseButton').on('click touch', function() {
    $('.myElement').smallipop().close();

    //Or

    mySmallipop.close();
});

As well as a method to change the Smallipop instance's options while it's already initiated.

$('.myElement').smallipop().options({});

//Or

mySmallipop.options({options});

It would allow for much greater customization. While the current options allow for many things, this sort of capability would make possibilities nearly endless.

ArianeNubee avatar Mar 15 '17 16:03 ArianeNubee