I want to create 4 horizontal sliders which control the data generation settings (x and y, mean and var) and one button “Generate data” (i.e. a submit button). There are two challenges:
The sliders should not be all below each other, to save space. At least two should horizontally be next to each other.
The data shall not be generated before the user clicks the button. Something like here, but one button for multiple sliders.
For #2: You can snapshot the current value of of the sliders using a function inside Inputs.button like this. This is not great because each time you update the sliders, the button also reruns since it is now dependent on the slider cells and the result resets to the initial value. Somebody else probably has a better solution for this one.