on 2016 May 21 6:29 PM
Hi Faddy,
Please use span to align labels and input fields.
Regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pranav,
Thanks for your inputs.
I have tried with the code snippet provided. Here is my code.
<form:SimpleForm layout="ResponsiveGridLayout">
<form:content>
<Label text="First Name">
</Label>
<Input >
<layoutData>
<layout:GridData span="L2 M3 S10"/>
</layoutData>
</Input>
<Label text="Last Name"></Label>
<Input >
<layoutData>
<layout:GridData span="L2 M3 S10"/>
</layoutData>
</Input>
<Button text = "Submit">
<layoutData>
<layout:GridData span="L2 M3 S10"/>
</layoutData>
</Button>
</form:content>
</form:SimpleForm>
Output:
However, the output looks different w.r.to my requirement. Can you please help?
Also, what is meant by span="L2 M3 S10"? Can I give this inside <SimpleForm> tag?
Regards,
Faddy
Hi Faddy,
How about this: View.xml · GitHub
And to understand "L2 M3 S10 ". Consider your screen is divided into 12 columns and "L2" mean on large screen(Like desktop) a control(like button or input) will occupy 2 columns and for medium screen "M3"(like Tablet/iPad ) 3 columns will be occupied and so on.
For more details refer to this :JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.layout.form.ResponsiveG...
Regards,
Devaarth
Hi Faddy,
The may be due to the fact that some of the layout functions and properties are not compatible with "SimpleForm" and works only with "Form".
And also if you will check this link JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.commons.form.SimpleForm SimpleForm for sap.m is deprecated ,so it's better you use "Form" or switch to sap.ui.layout with different set of functions and properties
Regards,
Devaarth
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.