I use Formly form JSON schema to render my view. This way the inputs appear below the labels, yet I want the inputs to be displayed beside the labels.
I know that form-field-horizontal
can be used to render horizontal inputs if the fields are explicitly defined with a wrapper. But how can I render the inputs horizontally using JSON schema and model?
I retrieve the fields via formlyJsonschema.toFieldConfig(schema)
.
For more information about the JSON schema I use, check out the following link: https://formly.dev/docs/examples/advanced/json-schema.