Open alfredobp opened 2 years ago
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