sap.m.List supporting grid layout
See original GitHub issueInside the sample “sap.ui.layout.sample.GridTasks” there is a nice approach using StandardListItems inside a Grid layout.
If i want to use such a design in conjunction with sap.m.List, the approach will not work for me, ex.
<l:Grid defaultSpan="L3 M4 S6" class="sapUiSmallMarginTop">
<List ... with StandardListItem template
</l:Grid>
The list generates a list div and also an <ul>
for each <li>
, while the GridTask example only generates <li>
inside <div class="GridSpan">
.
It would be cool to be able to disable the rendered list tags (div, ul) to be able to use the GridTask design also for list supporting growing. I would be able to style my GroupHeader like
<l:GridData span="L12 M12 S12" linebreakL="true" linebreakM="true" linebreakS="true" />
and then have three list items in a row!
Maybe semantically this ist no more a List, but i would like to have a growing container with a render template that behaves exactly this way.
Inside SAPUI5 there have been a special widget for this (Special kind of TileContainer), but the widget has been marked as deprecated.
I think, if i would fallback to xml templates, i will not benefit from the Growing feature
<template:repeat list="{Items}" var="field">
<StandardListItem...
</template:repeat>
What do you mean?
Or mabye there is another approach of using a growing list with a responsive grid layout?
Cheers Holger
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (9 by maintainers)
Still using it for years 😉, but maybe update will be good for others.
Also great, that my request lazy loading images was implemented in the meantime, that goes hand-in-hand with the GridList.
Best regards Holger
Sorry for the late reply. Like @boghyon already mentioned, the feature is implemented with https://openui5.hana.ondemand.com/api/sap.f.GridList.