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

Sections as Expansion Panels: I want to expand only some sections/panels by default #300

Closed xfavalon closed 2 years ago

xfavalon commented 2 years ago

Hi,

Problem: I want to control which panels are expended initially.

Without Vjsf, I have to add v-model directive to the v-expansion-panels component and set an array filled with the indexes of the panels that I want to be expanded. See the image.

Is it possible to achieve this feature using VJsf?

if is not, is it possible to add vue directives when rendering a component in the Vjsf code?

Thanks!

image

albanm commented 2 years ago

Yes, you can give all necessary props to the v-expansion-panels instance, see https://codepen.io/albanm/pen/qBjMawJ?editors=101

xfavalon commented 2 years ago

Thanks!