- A) Side-labels without having to wrap fields into
FormItem
s - B) Automatic label-column width in side-labels mode (opt-in)
Please reply with a score of 1–10 for A and B separately (where 1 is meh and 10 is the best thing since sliced bread).
Context for A: FormLayout
currently supports rendering field labels on the side only if the fields are wrapped into FormItem
s. Labels, colspans etc need to be set on the FormItem
instead of the field itself.
The proposed improvement would allow you to just add fields normally without wrapping them into FormItems
, and still get side-label rendering when the FormLayout
is configured to use it.
Context for B: In side-labels mode, the labels are in their own column whose width defaults to 8em and can be configured to some other length. If labels are longer, they wrap to multiple lines if possible, or overflow if they can’t be wrapped.
The proposed improvement would allow you to set the width of the label column to “auto”, so that it would automatically adjust itself to the actual length of the labels in that column. There would also be a configurable max width for the labels to prevent long labels from making it absurdly long.