Skip to content

Allow manual open/close #56

@ArianeNubee

Description

@ArianeNubee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions