Skip to content

Commit

Permalink
[FEATURE] Add possibility to use a signal in own JS after an action w…
Browse files Browse the repository at this point in the history
…as performed

With a code like:
document.addEventListener('luxWorkflowAction', (event) => {
  console.log(event);
})
you can listen to any action that was performed in LUXenterprise - e.g. when a lightbox was opened

Related: #47
  • Loading branch information
einpraegsam committed Apr 22, 2024
1 parent ad83204 commit 6c2293e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Resources/Private/Build/JavaScript/Frontend/Lux.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ function LuxMain() {
/**
* Callback and dispatcher function for all workflow actions (part of the Enterprise Edition)
*
* Signal can be used in own code after action is performed with:
* document.addEventListener('luxWorkflowAction', (event) => {
* console.log(event);
* })
*
* @params {Json} response
* @returns {void}
*/
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Lux.min.js

Large diffs are not rendered by default.

0 comments on commit 6c2293e

Please sign in to comment.