on 01-08-2015 9:31 AM
Hi ,
Are there any controls in general for spaces or invisible UI elements to insert gaps between controls or spaces in layout. I saw similar space control like toolbarspacer but is there any spacer to use in general.
Regards,
Koti Reddy
I would go with what Kai has suggested. Can you give us some examples on what you are trying to do?
thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all for your valuable suggestions.
I am trying to implement customtile which will hold the layout content as shown in the screenprint.
It would be great if you can share any CSS Code to get some idea for me and let me know alternative procedure if any to achieve this with UI Elements like spacer etc.
Note: Please share recommendations about horizontal and vertical lines as well.
Regards,
Koti Reddy
Hi,
Regarding space , used CSS but it is not good solution in my point of view if lot of UI Elements present in complex way with XML View.
If we use Javascript view , Matrix layout gives good space between UI Elements so no issue.
I think SAP should look a way to introduce Spacer UI Element to use in XML Views especially.
Regards,
Koti Reddy
Oh boy, please no! I was just sooooo happy SAP got rid of those terrible spacer and/or invisible elements in UI5, which they forced us to use in Web Dynpro...
IMHO, it's already a bad decision they still have the MatrixLayout et al in SAPUI5, but my guess is they have included it to make long-time Web Dynpro developers happy. But the MatrixLayout is just like the HTML table: it should only be used for tabular data, and not for laying out your controls. There are better elements to do that (FlexBox)
It may take some effort, but CSS is always the best solution to for spacing, aligning, scaling or whatever layout-based change you need to make. With simple screens you may get away with it, but especially with complex XML views, I would reject any code that contains styling and extra elements in the hierarchy, just to cater aligning or spacing stuff.
Remember, you should always separate presentation and content, and building visual styling into your views is a bad, bad idea.
You can check answer from Robin van het Hof in the thread html - Space between controls in SAPUI5 - Stack Overflow
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why not use css for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.