jquery-slidePanel
jquery-slidePanel copied to clipboard
closeSelector not working
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.
I should guess this project is dead. :/
it should be written like this:
$.slidePanel.show({
content: '<div><button id="idButton" type="button">close</button></div>'
}, {
closeSelector : '#idButton'
});
thx but should I enter each parameter in a new object?