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

OverlayPanel: Close overlay when clicked again #151

Closed
anikets43 opened this issue Mar 29, 2016 · 3 comments
Closed

OverlayPanel: Close overlay when clicked again #151

anikets43 opened this issue Mar 29, 2016 · 3 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@anikets43
Copy link

Hi,
Is there any configuration to close the overlay panel when clicked second time.

Thanks,
Aniket

@cagataycivici
Copy link
Member

Hi,

Clicked where? Its target?

@anikets43
Copy link
Author

Hi @cagataycivici

Let's say in the below demo link(Basic), when user clicks on the basic button it will open the overlay panel. Again when click on the same, it should close the panel. In the demo, when we click outside the overlay, it closes.
http://www.primefaces.org/primeng/#/overlaypanel

Regards,
Aniket

@cagataycivici
Copy link
Member

I've added toggle() method for this, so that if panel is visible, toggle hides it. Signature is same as show so you just need to replace show with toggle. show still remains for cases where you always want to show it.

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 30, 2016
@cagataycivici cagataycivici added this to the 1.0.0-beta.1 milestone Mar 30, 2016
@cagataycivici cagataycivici self-assigned this Mar 30, 2016
atretyak1985 pushed a commit to Nanitor/primeng that referenced this issue Jul 18, 2020
Popup dialogs in the Admin UI are yellow, but not blue. primefaces#150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants