diff --git a/docs/source/extensions/ev_gui.rst b/docs/source/extensions/ev_gui.rst index c5d64211..79ca7a9d 100644 --- a/docs/source/extensions/ev_gui.rst +++ b/docs/source/extensions/ev_gui.rst @@ -32,6 +32,8 @@ The root of your ``gui`` dictionary expects 2 properties: ``icon`` - The name of a Material Design icon to use for your plugin +``viewPanel`` *(optional)* - Content to display to the right of the extension form. Either ``stream`` (default), ``gallery``, or ``settings``. + ``forms`` - An array of forms as described below Form level @@ -53,8 +55,6 @@ Each form is described by a JSON object, with the following properties: ``schema`` - List of dictionaries. Each dictionary element describes a form component. -``viewPanel`` *(optional)* - Content to display to the right of the extension form. Either ``stream`` (default), ``gallery``, or ``settings``. - ``emitOnResponse`` *(optional)* - OpenFlexure eV event to emit when a response is recieved from the extension (generally avoid unless you know you need this.) Component level diff --git a/openflexure_microscope/api/default_extensions/autostorage.py b/openflexure_microscope/api/default_extensions/autostorage.py index 1d1d98a8..4ce6c28c 100644 --- a/openflexure_microscope/api/default_extensions/autostorage.py +++ b/openflexure_microscope/api/default_extensions/autostorage.py @@ -241,6 +241,7 @@ def dynamic_form(): return { "icon": "sd_storage", "title": "Storage", + "viewPanel": "gallery", "forms": [ { "name": "Autostorage", @@ -248,7 +249,6 @@ def dynamic_form(): "isTask": False, "route": "/location-from-title", "emitOnResponse": "globalUpdateCaptures", - "viewPanel": "gallery", "submitLabel": "Set path", "schema": [ {