Inputs should have display options for where the label appears: inline vs block (above/below) - Mendix Forum

Inputs should have display options for where the label appears: inline vs block (above/below)

0

With Inputs you can only change the text of the label, nothing else. If you want the labels to appear above the inputs you either have to hide the label on the input, then create a container above the input and place a fake label there, or create custom css rules to change the display properties and widths for the input elements.

 

Instead, there should be an option to choose if you want the label to display as "inline" or "block". Natively, these options would be intuitive to any developer who has a basic understanding of CSS. If you select Inline, you should have options to define the widths for the label and input. If you select Block, you should be able to define the position of the label as above/below.

asked
3 answers

Agree, this can be nicer!

For now I use the trick by placing a dataview inside a dataview, with the same object, using Datasource nanoflow, which just returns the input parameter. One View uses horizontal the other Vertical. 

 

image.png

Created

Don't know why I can't reply in Ideas post, but the above "suggestion" is a form wide setting, which effects ALL inputs. There are times when individual inputs need different settings, which is not possible. Individual inputs should be able to override the parent form settings for their display.

Created

This is already possible.

 

Displaying a label above an input field is easily done by setting the Form orientation option of the enclosing data view to Vertical.

 

image.png

 

If you set it to Horizontal you also have the option to determine how wide you want the label's 'column' to be:

image.png

Created