jsonform / jsonform

Build forms from JSON Schema. Easily template-able. Compatible with Bootstrap 3 out of the box.
https://jsonform.github.io/jsonform/playground/index.html
MIT License
2.72k stars 553 forks source link

How to manage combination of vertical and horizontal layout? #403

Closed UdayCTO closed 1 year ago

UdayCTO commented 1 year ago

Hello,

I would like to manage combination of horizontal and vertical layout, how do I do it? e.g. I have invoice schema which has invoice header (Invoice nr, invoice date, invoice amount, discount) and invoice details which will have multiple line items (e.g. product code, product name, quantity, unit price, amount, tax% etc)

sdetweil commented 1 year ago

JSONForm is vertical. so I think u will have to use CSS classnames and then css to arrange the fields in a different visual layout

tchapi commented 1 year ago

That's true. You can roll your own CSS or alter the templates if you want to achieve a custom layout

sdetweil commented 1 year ago

altering the template seems extreme, but...