https://prefect.io logo
d

Deceivious

07/14/2023, 2:21 PM
Hello, Is there any way to implement a dropdown selection on the UI when starting a custom run for a deployment? Update: Solved!
1
image.png
t

Tim-Oliver

07/14/2023, 3:04 PM
I think
Enum
should work.
d

Deceivious

07/14/2023, 3:08 PM
Do you have an example sample code?
t

Tim-Oliver

07/14/2023, 3:09 PM
Unfortunately not right now. If I recall it correctly it is something like
param: Enum[str] = Enum(...)
Providing the default value will result in the drop-down menu
d

Deceivious

07/14/2023, 3:09 PM
Thanks that should be enough
I shall test it out.
🔥 1
That worked
Any way to get rid of the class name and the description from UI?
c

Craig Harshbarger

07/14/2023, 6:39 PM
Not at this time bug feel free to open up a github issue around that
t

Tim-Oliver

07/17/2023, 8:28 AM
Maybe
Literal[str]
works as well. Not sure if this would get displayed differently in the UI.
2 Views