diff --git a/src/openflexure_microscope_server/ui.py b/src/openflexure_microscope_server/ui.py index d6c68290..53dd0647 100644 --- a/src/openflexure_microscope_server/ui.py +++ b/src/openflexure_microscope_server/ui.py @@ -83,6 +83,13 @@ class PropertyControl(BaseModel): read_back_delay: int = 1000 """The delay in ms before reading back the property.""" + options: list[str] = [] + """A list of options to pass to the UI for a dropdown. + + These options aren't validated in the UI in any way, and invalid + settings will only be rejected when selected. + """ + def property_control_for( thing: lt.Thing, property_name: str, **kwargs: Any diff --git a/webapp/src/components/labThingsComponents/inputFromSchema.vue b/webapp/src/components/labThingsComponents/inputFromSchema.vue index 70a80026..33adb079 100644 --- a/webapp/src/components/labThingsComponents/inputFromSchema.vue +++ b/webapp/src/components/labThingsComponents/inputFromSchema.vue @@ -1,5 +1,20 @@