Plugin schema are now just plugin forms (requires eV 1.2)
This commit is contained in:
parent
0d7a5f71e0
commit
d9e07f913a
16 changed files with 106 additions and 98 deletions
33
docs/source/plugins/example/forms.json
Normal file
33
docs/source/plugins/example/forms.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue