kendrick's avatar

Event Listener Logic with Popup Notification

Hello, I am currently thinking about a simple logic, to test in terms of visually outputting a push notification or just a partial logic, like a container (div) on the user side of the application, if a button is clicked on the second side of the application.

How should I approach my work towards implementing such a simple logic?

Current thoughts:

Controller: 

1) A method which includes the Event, which will be triggered
2) A listener to trigger the container notification (simple partial) at a chosen view

Thank you in advance.

0 likes
1 reply
kendrick's avatar

How could I implement the listener logic within my view? Something like: if $session listened to this Event, show this container, with a button to X out or recognize the container for the user (like a cookie information, so if clicked the popup will be put into display: none?)?

Or simply

How should I approach this logic?

Please or to participate in this conversation.