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

Trigger without html #275

Open
ghost opened this issue Aug 27, 2018 · 1 comment
Open

Trigger without html #275

ghost opened this issue Aug 27, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 27, 2018

Is it possible to use this without relying on a selector that is listening to an html event?

The thing that I am clicking resides within a canvas element, so it is not addressable by the typical html id. Instead, I have an ajax call that I want to trigger the slideout with like so:

success: function (response) {
    Slideout({'panel': document.getElementById('panel')});

But I am getting the error Uncaught TypeError: Cannot set property '_startOffsetX' of undefined

@cssjunkie
Copy link

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

1 participant