Commit 6b14ea83 authored by Joel Collins's avatar Joel Collins
Browse files

Moved viewPanel into top-level of extension GUI

parent 5dfc27ed
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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": [
                    {