Ui_dropdown, looking for better/faster inputting solution

Hi,

I need a few UI dropdowns with a large number of Options (1-900 in steps of 1, 80-150 in steps of 1, etc.).
I created this in two different ways, both by inputting an array with the desired Options.

The first is: creating the options inside a function using a for loop, then inputting them into the dropdown. This results in very slow loading of the dashboard after deployment/restart flows.

ver-1.json (9.1 KB)

The second is: creating the Options and saving them in flow.context. Then through a function, inputting them into the dropdown. This way is a bit faster.

ver-2.json (13.9 KB)

I'm looking for an idea/suggestion for an even better (faster) way to inject the dropdowns and load the dashboard.
Thanks.

I understand you are still using dashboard-1, which is no longer supported.
Anyway, What I would do is define the dropdown as an HTML object in a ui-template node, and populate it programmatically in the JS script.

With that number of options wouldn’t a slider be better

1 Like