cancel
Showing results for 
Search instead for 
Did you mean: 

ScrollContainer XMLView templating

Former Member
0 Kudos

Hi,

I have a Scroll Container in JSView. This works well for templating. However, I am looking for the same code in XML view. Please do help out.

var container = new sap.m.ScrollContainer({ 

        vertical:true,

          content: {

            path: '/results',

            template: oTile

          }

});

Thanks

Senthil Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Senthil,

below is the way of representing the xml code of the "ScrollContainer",


<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"

  controllerName="container.Sample" xmlns:html="http://www.w3.org/1999/xhtml">

  <Page title="Title">

  <content>

  <ScrollContainer

  id="scrollcontainer" height="100%" content="{/results}">

  <Page tite=" Your template "></Page>

  </ScrollContainer>

  </content>

  </Page>

</core:View>

Hope this code helps,

regards,

Nagarjun

Answers (1)

Answers (1)

santhu_gowdaz
Active Contributor
0 Kudos

Hi Senthil,

may this help you,

SAPUI5 Explored