jsonforms
jsonforms copied to clipboard
Ability to customize width of input
Is your feature request related to a problem? Please describe.
I want to customize HorizontalLayout in Angular material view such that rather than 50/50 split, i want more of 20/80 split
How can I achieve this ?
Describe the solution you'd like
Ability to pass flex option in json that can be passed to jsonform
Describe alternatives you've considered
I am thinking about using css. However, ids are attached to input tags but not on div element which contains input tag
Framework
Angular
RendererSet
Material
Additional context
No response
Hi @contactzen,
you need to implement a custom layout renderer which is able to render the children in the way you would like to see them. One way to implement this is to add a "weight" UI Schema option to the element itself and/or its children. Then the custom renderer can read it and render accordingly.