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.
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.
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.