You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Is there any way to pass a list of values to a type select input that comes from a request to an API rest response?
Currently, I have a form like this:
`
[{
"component": "h3",
"children": "Migrar un sitio"
},
{
"label": "Nombre de la instalación",
"name": "name",
"validation": "required"
},
{
"type": "autocomplete",
"label": "list",
"name": "list",
"validation": "required",
"label": "Search for a hosting domain",
"options": [
You should probably use a computed property that returns your schema using whatever other property has your API response with the options you want to use. This could differ depending on your current implementation of the API fetch.
Hello. Is there any way to pass a list of values to a type select input that comes from a request to an API rest response?
Currently, I have a form like this:
`
[{
"component": "h3",
"children": "Migrar un sitio"
},
{
"value": 1,
"label": "xxx"
},
{
"value": 2,
"label": "Jane Roe"
},
{
"value": 3,
"label": "Bob Foe"
},
{
"value": 4,
"label": "Ben Cho"
}
]
]`
I have a custom component: autocomplete, following the official documentation.
It´s works fine, but I don't want to have to do this in the json Schema. If not pass a variable in vue.js with the data array.
"options": [{ "value": "--", "label": "---" }, { "value": "webempresa", "label": "WebEmpresa" }, { "value": "dinahosting", "label": "Dinahosting" }, { "value": "arsys", "label": "Arsys" } ],
Thanks for the help
The text was updated successfully, but these errors were encountered: