Rain template: Notification Bar - not close if a p:command / p:commandLink is clicked? #933
Replies: 4 comments
-
Any updates here? |
Beta Was this translation helpful? Give feedback.
-
Primetek? Any updates here? |
Beta Was this translation helpful? Give feedback.
-
Hi, firstly, I want to apologize for the late response. We are working on the feedback and will act on it to improve the support for the templates. I checked the forum and tried to understand what you wanted to achieve, so I created this example. In this example, you can add a command button, commandlink menu, or others, and when you click on them, they don't close unless you want them to. Also, the other items under the notification bell close the panel when clicked. I think this way, you can make it more customizable. 2024-03-23.14-37-05.mp4Now, the code part:
Now the functions are just simple ones for testing, but I am also adding them here so we can communicate well
Now, this part is the one with customized itemclicks inside your bindTopbarEvents. As you can see, it checks if the click is for action-item .commandLink. You can add more or change it. The examples are for one with class and component.
If I understand the issue correctly, you can use it whatever you want inside your notifications panel. If I didn't, please explain the exact thing you want to achieve. If possible, a code example would make it much easier for me to test and fix. I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback. But it seems it´s not working for me: -> the dialog closed... I have changed this part in file: layout.js into: ` bindTopbarEvents: function() {
Here my JSF page:
</ui:composition>` |
Beta Was this translation helpful? Give feedback.
-
I opened a question already in the old forum:
https://forum.primefaces.org/viewtopic.php?f=138&t=77789
I think with the new update from PF Rain it´s still not working.
I migrated also to PF13, because there was the
<p:menu appendTo="@this"
implemented (see also primefaces/primefaces#9489 )How can this be solved?
Beta Was this translation helpful? Give feedback.
All reactions