You can read about the new features in Luigi v2.4 in the release notes below.
Luigi Client functions for web components
With this release, we added the possibility to use more Luigi Client functions with web-component-based micro frontends. The following functions are now available also for web components:
- addNodeParams - sets node parameters in Luigi Core
- getNodeParams - returns the node parameters of the active URL
- setAnchor - sends anchor to Luigi Core
- modalSettings.keepPrevious - allows you to open multiple modals
Added onLoad functionality for web components
We added an onLoad functionality to web component micro frontends. An event
wc_ready is sent when the web component is ready, which should then initialize Luigi Client. It is possible to defer this initialization using
deferLuigiClientWCInit: true. For more information, see the pull request.
data-testid attribute for the modal close button
In this release, we added the possibility to configure a
data-testid attribute for the close button of a modal. The attribute can be specified via the
modalSettings in openAsModal. For more information, see the pull request.
Removed onunload listener
Due to deprecation of the
unload event, we removed the
onunload listener from Luigi.
Get the latest from Luigi
Always stay up to date with our growing collection of news, innvovations and video tutorials.