Global EventBus events: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "== Intro == You can now use the event bus events below in order to manage page navigation, sessions and loading states outside of the portals app (e.g. in custom components: * elementHover - now you can invoke the element over to turbo-load into memory from external applications * elementClick - now you can invoke the element click to turbo-load into memory from external applications and navigate to the page * sessionUpdate - you can set the session externally * refres...")
 
No edit summary
 
Line 66: Line 66:
}
}


</syntaxhighlight>Then simply raise the correct event:<syntaxhighlight lang="javascript" line="1">
//This will cause a navigation to the index page
EventBus.fireEvent('elementClick', {
    detail: '#Index',
});
</syntaxhighlight>
</syntaxhighlight>
[[Category:3B Portals]]
[[Category:3B Portals]]

Navigation menu