koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
538 stars 154 forks source link

Image selection / enum #323

Closed JuliusJacobitz closed 2 years ago

JuliusJacobitz commented 2 years ago

Hi @albanm, I am trying to build an image selector based on urls. My goal is to select one url from an array of urls, but to display the images instead of the url. I came across a solution that works with v-select. Is there a way to accomplish this in vjsf? Or could you think of another solution? I tried to fiddle with slots etc. but couldn't get it to work.

Link to v-select solution

t

albanm commented 2 years ago

Did you see this example https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/examples#select-icons ?

JuliusJacobitz commented 2 years ago

Thank you for your quick answers! And yes I did, currently using it. Is there a more customizable way?

albanm commented 2 years ago

For more customization you would need to use a custom component I think, see https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/examples#slots-wrappers.