Added JSON form docs

This commit is contained in:
Joel Collins 2019-07-08 13:28:17 +01:00
parent b7ffab6868
commit cb0e0886ac
8 changed files with 561 additions and 133 deletions

View file

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