Hello, Is there any way to implement a dropdown se...
# prefect-ui
d
Hello, Is there any way to implement a dropdown selection on the UI when starting a custom run for a deployment? Update: Solved!
2
2
t
I think
Enum
should work.
d
Do you have an example sample code?
t
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
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
Not at this time bug feel free to open up a github issue around that
t
Maybe
Literal[str]
works as well. Not sure if this would get displayed differently in the UI.
159 Views