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

frontend: allow Input widgets to trigger Actions #1538

Open
1 task done
ES-Alexander opened this issue Jan 6, 2025 · 0 comments
Open
1 task done

frontend: allow Input widgets to trigger Actions #1538

ES-Alexander opened this issue Jan 6, 2025 · 0 comments
Labels
enhancement New feature or request ui UI related issues

Comments

@ES-Alexander
Copy link
Contributor

Current behaviour

Most Input widgets can only set the value of a variable, which means actually triggering an Action that uses that variable requires doing so by some other means, which can be helpful sometimes, but can also be an awkward extra step, that may clutter up the UI with redundant elements.

Expected or desired behaviour

  1. Somewhat building off Actions: support release event callbacks #1475, widgets that allow changing a variable could also have an option to trigger an Action when that variable is changed
  2. For continuous input elements it may be worth providing a frequency limit on how often the trigger occurs (e.g. while moving a slider or dial), or setting it to a flag value like 0 or -1 to only trigger when the element is released

Two alternative/additional approaches would be to:

  1. provide a separate area where Actions can be set to trigger at a set frequency, and maybe subject to some user-defined conditions
    • This is very versatile, but may be unintuitive to some users
  2. provide a separate area where data-lake variable listeners can be set up, to trigger Actions when the variables change
    • This seems like it could have poor performance

but the separation of those from where the variable changers are configured may make them less intuitive than just single Action triggers where the variables are configured 🤷

Prerequisites

  • I have checked to make sure that a similar request has not already been filed or fixed.
@ES-Alexander ES-Alexander added enhancement New feature or request ui UI related issues labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui UI related issues
Projects
None yet
Development

No branches or pull requests

1 participant