jquery-slidePanel icon indicating copy to clipboard operation
jquery-slidePanel copied to clipboard

closeSelector not working

Open dsozzi opened this issue 7 years ago • 3 comments

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 avatar Oct 18 '17 14:10 dsozzi

I should guess this project is dead. :/

dsozzi avatar Oct 20 '17 18:10 dsozzi

it should be written like this:

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

hableel avatar Oct 26 '17 12:10 hableel

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

dsozzi avatar Nov 15 '17 16:11 dsozzi