Next / Previous dropdown selection via action #2848
Labels
area/internal
Related to an internal action or function of Companion.
Enhancement
New feature or request
Solution needed
Needs a solution on how to solve it
Is this a feature relevant to companion itself, and not a module?
Is there an existing issue for this?
Describe the feature
I would like internal actions to select the next or previous item from a dropdown in an action or feedback. This would be especially useful with the rotary actions.
For this to be most useable, the label field of the dropdown would need to be exposed as a variable so it can be displayed so the operator can see currently selected item.
I am not sure how this might work with multidrop option fields.
Sometimes this kind of action can be achieved with variables, especially if the input is a sequential number element, however for non sequential lists or strings any user side solution gets much more complicated. Even more so if the elements of the dropdown are determined at run time (and may even change during operation).
This can be implemented inside a module but requires some specific work for every element it is to apply to which adds a lot of boiler plate code.
Usecases
Selecting a source from a list for router control. Changing mode of a device, selecting a preset to recall etc. Allowing much more space efficient programming that a 'button per option' approach, and allows for the option list to change during runtime without needing a button reconfiguration / addition.
The text was updated successfully, but these errors were encountered: