Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: loading carousel vertical

$
0
0

Please refer below code and i developed sap.m.Carousel API SAPUI5 SDK - Demo Kit .it may be useful

 

<!DOCTYPE html>

 

<html>

<head>

<meta name="description" content="[SAPUI5 App based on Open Weather Map JSON API]" />

<meta http-equiv='X-UA-Compatible' content='IE=edge' charset='utf-8' />

<title>CustomTile</title>

<script id='sap-ui-bootstrap' type='text/javascript'

  src='https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js' data-sap-ui-theme='sap_bluecrystal'

  data-sap-ui-libs='sap.ui.commons,sap.ui.table,sap.m'></script>

<script>

 

var oCarousel = new sap.m.Carousel();

  oCarousel.setWidth("100%");

  oCarousel.setHeight("100%");

 

  oCarousel.addPage(new sap.m.Image("IMG1", {

  src : "http://existdissolve.com/wp-content/uploads/2010/08/microsoft-logo-64x64.png",

  alt : "sample image",

  width : "200px",

  height : "150px"

  }));

  oCarousel.addPage(new sap.m.Image("IMG2", {

  src : "http://existdissolve.com/wp-content/uploads/2010/08/microsoft-logo-64x64.png",

  alt : "sample image",

  width : "200px",

  height : "150px"

  }));

 

 

  oCarousel.placeAt("content");

 

  </script>

 

</head>

<body class='sapUiBody'>

  <div id='content'></div>

</body>

</html>

 

Please refer this document and try using this code.it may be useful sap.m.Carousel-Example in XML


Kindly let me know if you need any more information


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>