Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Dispatch custom event when workflow event is executed #47

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

felixranesberger
Copy link
Contributor

When a workflow action is successfully executed, Lux will dispatch a custom window event that developers can listen to.

document.addEventListener('luxWorkflowAction', (event) => {
  console.log(event);
})

@einpraegsam einpraegsam merged commit ad83204 into develop Apr 22, 2024
14 checks passed
@einpraegsam
Copy link
Contributor

Super, thank you @felixranesberger ❤️

@felixranesberger felixranesberger deleted the feature/general-workflow-action-events branch April 22, 2024 13:04
einpraegsam added a commit that referenced this pull request Apr 22, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants