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

closeSelector not working #9

Open
dsozzi opened this issue Oct 18, 2017 · 3 comments
Open

closeSelector not working #9

dsozzi opened this issue Oct 18, 2017 · 3 comments

Comments

@dsozzi
Copy link

dsozzi commented Oct 18, 2017

Hi, I'm displaying a side panel calling the global API:

 $.slidePanel.show({
  closeSelector : '#idButton',
  content: '<div><button id="idButton" type="button">close</button></div>'
});

and I expected that a listener was going to be attached to the panel and when I click an element inside the panel with id: idButton, the panel would close but it doesn't. I've tried to insert a breakpoint when the listener is created but it doesn't event stop there.

@dsozzi
Copy link
Author

dsozzi commented Oct 20, 2017

I should guess this project is dead. :/

@hableel
Copy link

hableel commented Oct 26, 2017

it should be written like this:

$.slidePanel.show({
  content: '<div><button id="idButton" type="button">close</button></div>'
}, {
  closeSelector : '#idButton'
});

@dsozzi
Copy link
Author

dsozzi commented Nov 15, 2017

thx but should I enter each parameter in a new object?

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

2 participants