Open Cloud app development oc-notification element #2351
-
|
Hello, Im working on a app for opencloud. An using the oc-notification element to display a message. How do I use the included "x" button in the notification to trigger an event? |
Beta Was this translation helpful? Give feedback.
Answered by
JammingBen
Feb 17, 2026
Replies: 1 comment 1 reply
-
|
You can simply add a listener to the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shuedna
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can simply add a listener to the
closeevent and trigger your event there. See how it's done e.g. here: https://github.com/opencloud-eu/web/blob/main/packages/web-runtime/src/components/MessageBar.vue#L12