You can read about the new features in Luigi v2.7 in the release notes below.
New webcomponentCreationInterceptor function
We added the function webcomponentCreationInterceptor
which can be included in the general settings configuration. The function is called on web component creation, and it gives you full control over the created web component DOM element. You can modify it according to your needs just before it is added to the DOM tree. You can find more details in the documentation.
Option to disable topNav for children of root node
In this release, we added the topNav
navigation parameter. It is a boolean which determines whether children of the root node will be shown in the top navigation. If set to false
, children of the root node will not be rendered in the top navigation, but in the left navigation (default) or in the horizontal navigation (tabNav) if this is configured on the node. You can find more information as well as an example in the documentation.
Luigi Client functions for web components
In this release, we added the possibility to use more Luigi Client functions with web-component-based micro frontends. The following functions are now also available for web components:
- getPathParams - returns the dynamic path parameters of the active URL
- getCoreSearchParams - reads search query parameters which are sent from Luigi Core
- getClientPermissions - returns the current Client permissions as specified in the navigation node.
- getAnchor - returns the current anchor based on the active URL.
Bugfixes
For a full list of bugfixes in this release, see our changelog.
Get the latest from Luigi
Always stay up to date with our growing collection of news, innvovations and video tutorials.