i want to open and close panel with one button
i want to do toggle panel.
but it not working.I used this code.
$("#panel").toggle();
What is the solution for toggle panel.???
i want to open and close panel with one button
i want to do toggle panel.
but it not working.I used this code.
$("#panel").toggle();
What is the solution for toggle panel.???
Hello!
Panel is closed if you click on any spot on device screen by default.
I know that ,but I want to close on button click only.
Hi Pritu,
Add a button to panel and add a panel click event handler that closes the panel.
You can't use the same button to open/close panel (if it's on the panel you can't use it to open the panel, else - can't use to close).
I have the same issue. I only want the panel to close when a user presses a button but not just when they tap the screen anywhere. I do currently have a button that closes it but it will also close if I tap anywhere.
Hi Ellen,
Here is solution to disable panel auto hide behavior:
1 Open page with panel.
2 Activate panel by clicking on it.
3 Panel properties will appear in right panel. http://prntscr.com/4wlrw3/direct
4 Click on "More properties" in properties right panel. http://prntscr.com/4wls8j/direct
5 Add following attribute: http://prntscr.com/4wlskp/direct
pre
data-dismissible = false
/pre
That's all. From this time when you will click on outside the panel, panel will remain(not close).
Regards.
I found that this doesn't work when running on an iOS device. Any other ideas?
Hi Ellen,
Could you please specify the iOS version on which this doesn't works?
Please provide us with a public app link (http://devcenter.appery.io/documentat...) we'll take a look.