Displaying Editor stacked fields in 2 rows
Displaying Editor stacked fields in 2 rows
This is a question around the Datatables as an Input example - Parent Child relationship.
Here is a screenshot of the userEdit screen. 
What I want to do is to put the First Name and Last Name on one row and the remaining 2 fields on a second row. Then I want them to go stacked when the screen is resized. BTW they are currently being displayed (my local version) using the settings of display: 'bootstrap' and bootstrap: { floatingLabels: true },
which increases the current screen white space even more leaving a lot of unused real estate.
Any assistance is greatly appreciated.
Thanks in advance!
This question has an accepted answers - jump to answer
Answers
Hi,
Great question! At the moment I think the only way to do something like
{label} {input} {input}in Editor is to use a custom layout template and use CSS to hide the name of the fields while full size (putting in your own label - in this case "Name").You'd then use responsive CSS with your custom HTML to just show the regular labels in columns when a small screen is used.
So possible, but not particularly quick or obvious I'm afraid. I'll have a think about how I can have something like this built in as that would be a nice touch.
Allan
Thanks very much! I am sure there are lots of priorities ahead of this but it will be awesome to see what you come up with.
I figured it out. Here is an example of the HTML
and here is the CSS
And here are the screenshots
and
Very cool - nice one. I've been pondering this over the weekend, and I think the answer will likely be to introduce a new field type which can take multiple child fields. Exactly how that will work with the API (or even with the internal data structure!) I'm not yet sure, but it is something I will continue to mull over.
Allan