openflexure-microscope-server/docs/source/plugins/example/forms.json

33 lines
No EOL
728 B
JSON

{
"id": "example-plugin",
"icon": "pets",
"forms": [
{
"name": "Hello world",
"isTask": false,
"selfUpdate": true,
"route": "/hello",
"form": [
{
"fieldType": "textInput",
"placeholder": "Enter a string",
"label": "Plugin string",
"name": "plugin_string"
}
]
},
{
"name": "Timelapse",
"isTask": true,
"route": "/timelapse",
"submitLabel": "Start timelapse",
"form": [
{
"fieldType": "numberInput",
"name": "n_images",
"label": "Number of images"
}
]
}
]
}