Limenius / liform-react

Generate forms from JSON Schema to use with React (& redux-form)
https://limenius.github.io/liform-react/
MIT License
174 stars 42 forks source link

Grouping fields #14

Closed vedrani closed 7 years ago

vedrani commented 7 years ago

I don't see it in examples but is there technical possibility to create widget that would allow grouping of form fields?

I would like to reproduce this example from redux-autoform https://redux-autoform.github.io/redux-autoform-bootstrap-ui/demo.html?preset=layouts

nacmartin commented 7 years ago

I do this by having a property like this:

"compound" : {
     "type": "object",
     "widget" : "myWidget",
     "properties" : {
         //...
     }
}

And then defining myWidget on the Theme (extending the theme)