uPortal-Project / uPortal-web-components

A collection of uPortal Web Components and JavaScript utilities
https://uportal-project.github.io/uPortal-web-components
Apache License 2.0
24 stars 25 forks source link

esco-content-menu: having reactivity on several instance of components use #410

Open jgribonvald opened 5 years ago

jgribonvald commented 5 years ago

The use case is simple, having a portlet content with favorites list and the esco-content-menu or on the same page a esco-content-grid that permit to favorite a portlet won't update each content after a toggleFavorite action. Only a page refresh will update all instance of use of components.

When a portlet is favorited/unfavorited we should be able to communicate an event on all components running on the same page and so each component could be aware of the event and would be able to do his stuff on his side, and so update favorited list !

So to fix that launching a specific event would help, like that each component knowing a such kind of event could intercept it.

jgribonvald commented 3 years ago

To complete, a such event could be also emitted or intercepted by other components like the waffle-menu.

A good first contribution for Open Apereo 2021 workshop.