pritu patel
Posts: 0
Joined: Tue Jan 21, 2014 6:24 am

how to open and close both on one button click??

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.???

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

how to open and close both on one button click??

Hello!

Panel is closed if you click on any spot on device screen by default.

pritu patel
Posts: 0
Joined: Tue Jan 21, 2014 6:24 am

how to open and close both on one button click??

I know that ,but I want to close on button click only.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

how to open and close both on one button click??

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).

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

how to open and close both on one button click??

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

how to open and close both on one button click??

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

how to open and close both on one button click??

I found that this doesn't work when running on an iOS device. Any other ideas?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to open and close both on one button click??

Hi Ellen,

Could you please specify the iOS version on which this doesn't works?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to open and close both on one button click??

Please provide us with a public app link (http://devcenter.appery.io/documentat...) we'll take a look.

Return to “Issues”